KGzocha\Searcher\AbstractCollection::__construct PHP Method

__construct() public method

public __construct ( Traversable | array $items = [] )
$items Traversable | array
    public function __construct($items = [])
    {
        $this->items = [];
        $this->isTraversable($items);
        $this->checkItems($items);
        $this->items = $items;
    }

Usage Example

 /**
  * @param CriteriaBuilderInterface[] $builders array or \Traversable object
  */
 public function __construct($builders = [])
 {
     parent::__construct($builders);
 }
All Usage Examples Of KGzocha\Searcher\AbstractCollection::__construct