LdapTools\Ldif\Entry\LdifEntryAdd::toOperation PHP Method

toOperation() public method

public toOperation ( )
    public function toOperation()
    {
        $hydrator = new OperationHydrator();
        $hydrator->setOperationType(AttributeConverterInterface::TYPE_CREATE);
        $operation = new AddOperation($this->dn, $this->attributes);
        $operation->setLocation($this->location);
        return $this->hydrateOperation($hydrator, $operation);
    }