1 | <?php |
||
15 | class Projector implements EventListenerInterface |
||
16 | { |
||
17 | use DelegateEventHandlingToSpecificMethodTrait; |
||
18 | |||
19 | /** |
||
20 | * @var RepositoryInterface |
||
21 | */ |
||
22 | private $repository; |
||
23 | |||
24 | /** |
||
25 | * @param RepositoryInterface $repository |
||
26 | */ |
||
27 | public function __construct(RepositoryInterface $repository) |
||
31 | |||
32 | /** |
||
33 | * @param RoleCreated $roleCreated |
||
34 | * @param DomainMessage $domainMessage |
||
35 | */ |
||
36 | public function applyRoleCreated( |
||
45 | |||
46 | /** |
||
47 | * @param RoleRenamed $roleRenamed |
||
48 | * @param DomainMessage $domainMessage |
||
49 | */ |
||
50 | public function applyRoleRenamed( |
||
59 | |||
60 | /** |
||
61 | * @param RoleDeleted $roleDeleted |
||
62 | * @param DomainMessage $domainMessage |
||
63 | */ |
||
64 | public function applyRoleDeleted( |
||
70 | |||
71 | /** |
||
72 | * @param ConstraintAdded $constraintAdded |
||
73 | */ |
||
74 | protected function applyConstraintAdded(ConstraintAdded $constraintAdded) |
||
75 | { |
||
76 | $this->repository->updateConstraint( |
||
77 | $constraintAdded->getUuid(), |
||
78 | $constraintAdded->getQuery() |
||
79 | ); |
||
80 | } |
||
81 | |||
82 | /** |
||
83 | * @param ConstraintUpdated $constraintUpdated |
||
84 | */ |
||
85 | protected function applyConstraintUpdated(ConstraintUpdated $constraintUpdated) |
||
92 | |||
93 | /** |
||
94 | * @param ConstraintRemoved $constraintRemoved |
||
95 | */ |
||
96 | protected function applyConstraintRemoved(ConstraintRemoved $constraintRemoved) |
||
102 | } |
||
103 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.