Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 6 deletions.
5 changes: 4 additions & 1 deletion src/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,13 @@

namespace Zend\Ldap;

use Countable;
use Iterator;

/**
* Zend\Ldap\Collection wraps a list of LDAP entries.
*/
class Collection implements \Iterator, \Countable
class Collection implements Iterator, Countable
{
/**
* Iterator
Expand Down
4 changes: 3 additions & 1 deletion src/Collection/DefaultIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

namespace Zend\Ldap\Collection;

use Countable;
use Iterator;
use Zend\Ldap;
use Zend\Ldap\Exception;
use Zend\Stdlib\ErrorHandler;
Expand All @@ -17,7 +19,7 @@
* Zend\Ldap\Collection\DefaultIterator is the default collection iterator implementation
* using ext/ldap
*/
class DefaultIterator implements \Iterator, \Countable
class DefaultIterator implements Iterator, Countable
{
const ATTRIBUTE_TO_LOWER = 1;
const ATTRIBUTE_TO_UPPER = 2;
Expand Down
4 changes: 3 additions & 1 deletion src/Node.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@

namespace Zend\Ldap;

use Iterator;
use RecursiveIterator;
use Zend\EventManager\EventManager;

/**
* Zend\Ldap\Node provides an object oriented view into a LDAP node.
*/
class Node extends Node\AbstractNode implements \Iterator, \RecursiveIterator
class Node extends Node\AbstractNode implements Iterator, RecursiveIterator
{
/**
* Holds the node's new Dn if node is renamed.
Expand Down
4 changes: 3 additions & 1 deletion src/Node/AbstractNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@

namespace Zend\Ldap\Node;

use ArrayAccess;
use Countable;
use Zend\Ldap;
use Zend\Ldap\Exception;

/**
* This class provides a base implementation for LDAP nodes
*/
abstract class AbstractNode implements \ArrayAccess, \Countable
abstract class AbstractNode implements ArrayAccess, Countable
{
protected static $systemAttributes = array('createtimestamp', 'creatorsname',
'entrycsn', 'entrydn', 'entryuuid', 'hassubordinates', 'modifiersname',
Expand Down
6 changes: 5 additions & 1 deletion src/Node/ChildrenIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,16 @@

namespace Zend\Ldap\Node;

use ArrayAccess;
use Countable;
use Iterator;
use RecursiveIterator;
use Zend\Ldap;

/**
* Zend\Ldap\Node\ChildrenIterator provides an iterator to a collection of children nodes.
*/
class ChildrenIterator implements \Iterator, \Countable, \RecursiveIterator, \ArrayAccess
class ChildrenIterator implements Iterator, Countable, RecursiveIterator, ArrayAccess
{
/**
* An array of Zend\Ldap\Node objects
Expand Down
4 changes: 3 additions & 1 deletion src/Node/Schema/AbstractItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@

namespace Zend\Ldap\Node\Schema;

use ArrayAccess;
use Countable;
use Zend\Ldap\Exception;

/**
* This class provides a base implementation for managing schema
* items like objectClass and attributeType.
*/
abstract class AbstractItem implements \ArrayAccess, \Countable
abstract class AbstractItem implements ArrayAccess, Countable
{
/**
* The underlying data
Expand Down

0 comments on commit 8fc8a50

Please sign in to comment.