Esempio n. 1
0
File: Map.php Progetto: no22/gongo
 function __construct($seq, $callback)
 {
     parent::__construct($seq);
     if (!is_callable($callback)) {
         throw new InvalidArgumentException();
     }
     $this->callback = $callback;
 }
Esempio n. 2
0
File: Scan.php Progetto: 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;
 }
Esempio n. 3
0
 function __construct($first, $fn)
 {
     list($this->first, $this->fn) = func_get_args();
     $this->current_value = $first;
     parent::__construct($this);
 }
Esempio n. 4
0
File: Chunk.php Progetto: no22/gongo
 function __construct($seq, $size)
 {
     parent::__construct($seq);
     $this->size = $size;
 }