public function __construct(callable $accumulator, $seed) { $this->accumulator = $accumulator; $this->seed = $seed; $this->hasSeed = !is_null($seed); }