public function __construct(LoopInterface $loop) { $this->gifStreams = new \SplObjectStorage(); $this->loop = $loop; }