Author: Elliot Levin (elliotlevin@hotmail.com)
Inheritance: implements Pinq\Iterators\Generators\IGenerator
示例#1
0
 public function __construct(\Traversable $iterator = null)
 {
     parent::__construct();
     if ($iterator !== null) {
         $this->setAll($iterator);
     }
 }
示例#2
0
文件: Set.php 项目: timetoogo/pinq
 public function __construct(IGenerator $values = null)
 {
     parent::__construct();
     if ($values !== null) {
         foreach ($values as &$value) {
             $this->addRef($value);
         }
     }
 }
示例#3
0
 public function __construct(\Traversable $iterator)
 {
     parent::__construct();
     self::__constructIterator($iterator);
 }
示例#4
0
 public function __construct(array $array)
 {
     parent::__construct();
     self::__constructIterator($array);
 }
示例#5
0
 public function __construct(\ArrayIterator $arrayIterator)
 {
     parent::__construct();
     self::__constructIterator($arrayIterator);
 }
示例#6
0
 public function __construct(IGenerator $iterator)
 {
     parent::__construct();
     $this->iterator = $iterator;
 }