public function setBackend(Backend\BackendInterface $backend) { $this->backends = new \SplObjectStorage(); $this->backends->attach($backend); }