Refactored reciever

This commit is contained in:
Kevin Frantz
2018-12-14 10:10:28 +01:00
parent 33b1151a00
commit 0aac336609
11 changed files with 60 additions and 127 deletions

View File

@@ -26,9 +26,9 @@ final class RightChecker implements RightCheckerInterface
*/
private function getAllSourcesToWhichRightApplies(): Collection
{
$rightSourceMemberInformation = new SourceMemberInformation($this->right->getSource());
$rightSourceMemberInformation = new SourceMemberInformation($this->right->getReciever());
$allSourcesToWhichRightApplies = clone $rightSourceMemberInformation->getAllMembers();
$allSourcesToWhichRightApplies->add($this->right->getSource());
$allSourcesToWhichRightApplies->add($this->right->getReciever());
return $allSourcesToWhichRightApplies;
}