Skip to content

Commit

Permalink
Update LDAPIterator::__construct docblock and constructor to support …
Browse files Browse the repository at this point in the history
…PHP5.6
  • Loading branch information
madmatt committed Sep 22, 2018
1 parent 697db00 commit c719e9e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/Iterators/LDAPIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,15 @@ final class LDAPIterator implements Iterator
*/
private $cookie = true;

public function __construct(Ldap $ldap, string $filter, string $baseDn = null, array $returnAttributes = null, $pageSize = 250, bool $resolveRangedAttributes = false)
/**
* @param Ldap $ldap The Zend\Ldap\Ldap object that this iterator will use to retrieve results from
* @param string $filter An LDAP search filter (e.g. "(&(objectClass=user)(!(objectClass=computer)))")
* @param string|null $baseDn The Base DN to search from (or null to search from the connection root)
* @param array|null $returnAttributes The attributes to request from the LDAP server, or null to request all
* @param int $pageSize Number of results per page. This *must* be less than the LDAP server MaxPageSize setting
* @param bool $resolveRangedAttributes Whether or not to return ranged attributes
*/
public function __construct(Ldap $ldap, $filter = "", $baseDn = null, array $returnAttributes = null, $pageSize = 250, $resolveRangedAttributes = false)
{
$this->ldap = $ldap;
$this->filter = $filter;
Expand Down

0 comments on commit c719e9e

Please sign in to comment.