public function __construct(LdapConnectionInterface $connection = null, LdapObjectSchemaFactory $schemaFactory = null) { $this->schemaFactory = $schemaFactory; $this->connection = $connection; $this->hydrator = new OperationHydrator($connection); $this->entryBuilder = new LdifEntryBuilder(); }