public function __construct(SplQueue $queue, callable $done) { $this->queue = $queue; $this->done = $done; $this->dispatch = new Dispatch(); }