__construct() public method

Creates a new Linq object using the provided dataSource.
public __construct ( array | Iterator | IteratorAggregat\IteratorAggregate $dataSource )
$dataSource array | Iterator | IteratorAggregat\IteratorAggregate A Traversable sequence as data source.
Example #1
0
 public function __construct($groupKey, $dataSource)
 {
     parent::__construct($dataSource);
     $this->groupKey = $groupKey;
 }