Implemented getUserSourceDirector

This commit is contained in:
Kevin Frantz
2019-02-13 15:09:03 +01:00
parent 0af438479f
commit 0ab4cee064
3 changed files with 23 additions and 0 deletions

View File

@@ -49,4 +49,14 @@ class RequestedUser extends AbstractRequestedRightFacade implements RequestedUse
{
return $this->userSourceDirector->getUser()->getSource();
}
/**
* {@inheritdoc}
*
* @see \App\Domain\RequestManagement\User\RequestedUserInterface::getUserSourceDirector()
*/
public function getUserSourceDirector(): UserSourceDirectorInterface
{
return $this->userSourceDirector;
}
}

View File

@@ -3,6 +3,7 @@
namespace App\Domain\RequestManagement\User;
use App\Domain\RequestManagement\Right\RequestedRightInterface;
use App\Domain\UserManagement\UserSourceDirectorInterface;
/**
* Offers a Service for managing the rights.
@@ -11,4 +12,8 @@ use App\Domain\RequestManagement\Right\RequestedRightInterface;
*/
interface RequestedUserInterface extends RequestedRightInterface
{
/**
* @return UserSourceDirectorInterface
*/
public function getUserSourceDirector(): UserSourceDirectorInterface;
}