저자: Elliot Levin (elliotlevin@hotmail.com)
상속: 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;
 }