LdapTools\Ldif\Entry\LdifEntryTrait::hydrateOperation PHP Method

hydrateOperation() protected method

protected hydrateOperation ( OperationHydrator $hydrator, LdapTools\Operation\LdapOperationInterface $operation ) : LdapTools\Operation\LdapOperationInterface
$hydrator LdapTools\Hydrator\OperationHydrator
$operation LdapTools\Operation\LdapOperationInterface
return LdapTools\Operation\LdapOperationInterface
    protected function hydrateOperation(OperationHydrator $hydrator, LdapOperationInterface $operation)
    {
        if ($this instanceof SchemaAwareInterface) {
            $hydrator->setLdapObjectSchema($this->getLdapObjectSchema());
        }
        if ($this instanceof LdapAwareInterface) {
            $hydrator->setLdapConnection($this->getLdapConnection());
        }
        return $hydrator->hydrateToLdap($operation);
    }