userSourceDirector = $userSourceDirector; parent::__construct($requestedRight); } /** * You MUST NO use this method! Use UserSourceDirector instead! * * @see UserSourceDirectorInterface * @deprecated * {@inheritdoc} * @see \App\Attribut\RecieverAttributInterface::setReciever() */ public function setReciever(?SourceInterface $reciever): void { throw new SetNotPossibleException('It\'s not possible to set the reciever! Set it via '.UserSourceDirectorInterface::class.'!'); } /** * {@inheritdoc} * * @see \App\Attribut\RecieverAttributInterface::getReciever() */ public function getReciever(): SourceInterface { return $this->userSourceDirector->getUser()->getSource(); } /** * {@inheritdoc} * * @see \App\Domain\RequestManagement\User\RequestedUserInterface::getUserSourceDirector() */ public function getUserSourceDirector(): UserSourceDirectorInterface { return $this->userSourceDirector; } }