Left better error message

This commit is contained in:
Kevin Frantz 2019-02-03 03:15:07 +01:00
parent f3c2286a64
commit 9f565321a3

View File

@ -28,13 +28,15 @@ class RequestedUser extends AbstractRequestedRightFacade implements RequestedUse
} }
/** /**
* {@inheritdoc} * You MUST NO use this method! Use UserSourceDirector instead!
* *
* @see UserSourceDirectorInterface
* {@inheritdoc}
* @see \App\Attribut\RecieverAttributInterface::setReciever() * @see \App\Attribut\RecieverAttributInterface::setReciever()
*/ */
public function setReciever(SourceInterface $reciever): void public function setReciever(SourceInterface $reciever): void
{ {
throw new SetNotPossibleException('It\'s not possible to set the reciever!'); throw new SetNotPossibleException('It\'s not possible to set the reciever! Set it via '.UserSourceDirectorInterface::class.'!');
} }
/** /**