LdapTools\Ldif\Ldif::toOperations PHP Method

toOperations() public method

Get all of the operations represented by all of the entries for this LDIF object.
public toOperations ( ) : LdapTools\Operation\LdapOperationInterface[]
return LdapTools\Operation\LdapOperationInterface[]
    public function toOperations()
    {
        $operations = [];
        foreach ($this->entries as $entry) {
            $this->setupEntry($entry);
            $operations[] = $entry->toOperation();
        }
        return $operations;
    }