userSourceDirector = $userSourceDirector; parent::__construct($requestedRight); } /** * {@inheritdoc} * * @see \App\Attribut\RecieverAttributInterface::setReciever() */ public function setReciever(SourceInterface $reciever): void { throw new SetNotPossibleException('It\'s not possible to set the reciever!'); } /** * {@inheritdoc} * * @see \App\Attribut\RecieverAttributInterface::getReciever() */ public function getReciever(): SourceInterface { return $this->userSourceDirector->getUser()->getSource(); } }