コード例 #1
0
ファイル: Config.php プロジェクト: kstep/pnut
 public function getIterator()
 {
     return ArrayIterator($this->_config);
 }
コード例 #2
0
ファイル: ContainerTrait.php プロジェクト: finef/container
 public function getIterator()
 {
     $services = array_keys($this->_containerServicesDefinitions);
     if (in_array('_extend', $services)) {
         unset($services[array_search('_extend', $services)]);
     }
     return ArrayIterator($services);
 }
コード例 #3
0
ファイル: Range.php プロジェクト: asherwunk/primus2
 /**
  * Instead of \Iterator we use \IteratorAggregate instead
  * 
  * This gets the iterator for the range
  * 
  * @return \ArrayIterator The iterator for the range
  * 
  */
 public function getIterator()
 {
     return \ArrayIterator(range($this->min, $this->max));
 }