예제 #1
0
파일: Map.php 프로젝트: no22/gongo
 function __construct($seq, $callback)
 {
     parent::__construct($seq);
     if (!is_callable($callback)) {
         throw new InvalidArgumentException();
     }
     $this->callback = $callback;
 }
예제 #2
0
파일: Scan.php 프로젝트: no22/gongo
 function __construct($seq, $init, $callback)
 {
     parent::__construct($seq);
     if (!is_callable($callback)) {
         throw new InvalidArgumentException();
     }
     $this->callback = $callback;
     $this->initialValue = $init;
     $this->accumulator = $init;
     $this->isCached = false;
 }
예제 #3
0
파일: Follow.php 프로젝트: no22/gongo
 function __construct($first, $fn)
 {
     list($this->first, $this->fn) = func_get_args();
     $this->current_value = $first;
     parent::__construct($this);
 }
예제 #4
0
파일: Chunk.php 프로젝트: no22/gongo
 function __construct($seq, $size)
 {
     parent::__construct($seq);
     $this->size = $size;
 }