1 | <?php |
||
12 | class LabelEventRelationTypeResolver implements LabelEventRelationTypeResolverInterface |
||
13 | { |
||
14 | /** |
||
15 | * @var LabelEventIsOfEventType |
||
16 | */ |
||
17 | private $eventTypeSpecification; |
||
18 | |||
19 | /** |
||
20 | * @var LabelEventIsOfPlaceType |
||
21 | */ |
||
22 | private $placeTypeSpecification; |
||
23 | |||
24 | /** |
||
25 | * @var LabelEventIsOfOrganizerType |
||
26 | */ |
||
27 | private $organizerTypeSpecification; |
||
28 | |||
29 | public function __construct() |
||
35 | |||
36 | /** |
||
37 | * @param EventAbstractLabelEvent|OrganizerAbstractLabelEvent $labelEvent |
||
38 | * @return RelationType |
||
39 | * @throws \InvalidArgumentException |
||
40 | */ |
||
41 | public function getRelationType($labelEvent) |
||
56 | |||
57 | /** |
||
58 | * @param EventAbstractLabelEvent|OrganizerAbstractLabelEvent $labelEvent |
||
59 | * @return string |
||
60 | */ |
||
61 | private function createIllegalArgumentMessage($labelEvent) |
||
65 | } |
||
66 |
This check looks at variables that have been passed in as parameters and are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.