1 | <?php |
||
46 | class Mediator extends AbstractContainerMediator implements MediatorInterface |
||
47 | { |
||
48 | /** |
||
49 | * @param ContainerInterface|null $serviceContainer |
||
50 | * |
||
51 | * @throws \InvalidArgumentException |
||
52 | * @throws \RuntimeException |
||
53 | */ |
||
54 | public function __construct(ContainerInterface $serviceContainer = null) |
||
58 | /** |
||
59 | * This is used to bring in the service container that will be used. |
||
60 | * |
||
61 | * Though not required it would be considered best practice for this method |
||
62 | * to create a new instance of the container when given null. Another good |
||
63 | * practice is to call this method from the class constructor to allow |
||
64 | * easier testing. |
||
65 | * |
||
66 | * @param ContainerInterface|null $value |
||
67 | * |
||
68 | * @return $this Fluent interface. |
||
69 | * @throws \InvalidArgumentException |
||
70 | * @throws \RuntimeException |
||
71 | * |
||
72 | * @link http://pimple.sensiolabs.org/ Pimple |
||
73 | */ |
||
74 | public function setServiceContainer($value = null) |
||
86 | /** |
||
87 | * @param string $eventName |
||
|
|||
88 | * @param EveApiReadWriteInterface $data |
||
89 | * @param EveApiEventInterface $event |
||
90 | * |
||
91 | * @return EveApiEventInterface |
||
92 | * @throws \DomainException |
||
93 | * @throws \InvalidArgumentException |
||
94 | */ |
||
95 | public function triggerEveApiEvent( |
||
106 | /** @noinspection MoreThanThreeArgumentsInspection */ |
||
107 | /** |
||
108 | * @param string $eventName |
||
109 | * @param mixed $level |
||
110 | * @param string $message |
||
111 | * @param array $context |
||
112 | * @param LogEventInterface $event |
||
113 | * |
||
114 | * @return LogEventInterface |
||
115 | * @throws \DomainException |
||
116 | * @throws \InvalidArgumentException |
||
117 | */ |
||
118 | public function triggerLogEvent( |
||
133 | /** |
||
134 | * This method is used any time the mediator need to get the actual instance |
||
135 | * of the class for an event. |
||
136 | * |
||
137 | * Normal will only be called during actual trigger of an event since lazy |
||
138 | * loading is used. |
||
139 | * |
||
140 | * @param string $serviceName |
||
141 | * |
||
142 | * @return array |
||
143 | * @throws \LogicException |
||
144 | */ |
||
145 | protected function getServiceByName($serviceName) |
||
149 | } |
||
150 |
This check looks for
@param
annotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.