1 | <?php |
||
14 | class TriggerMgr |
||
15 | { |
||
16 | |||
17 | /** |
||
18 | * @var \Monitor\Model\Trigger |
||
19 | */ |
||
20 | private $triggers; |
||
21 | /** |
||
22 | * @var \Monitor\Notification\Trigger\Comparator\Comparator |
||
23 | */ |
||
24 | private $comparator; |
||
25 | /** |
||
26 | * @var \Monitor\Notification\Notifier |
||
27 | */ |
||
28 | private $notifier; |
||
29 | /** |
||
30 | * @var \Monitor\Utils\PercentageHelper |
||
31 | */ |
||
32 | private $percentageHelper; |
||
33 | /** |
||
34 | * @var \Doctrine\ORM\EntityRepository |
||
35 | */ |
||
36 | private $serviceRepository; |
||
37 | /** |
||
38 | * @var \Monitor\Service\NotificationLog |
||
39 | */ |
||
40 | private $notificationLogService; |
||
41 | |||
42 | public function __construct( |
||
57 | |||
58 | /** |
||
59 | * Check if triggers should be fired up |
||
60 | * |
||
61 | * @access public |
||
62 | * @param array $serverData |
||
63 | */ |
||
64 | public function checkTriggers(array $serverData, $msDelay) |
||
72 | |||
73 | /** |
||
74 | * Check if trigger meet conditions to be fired |
||
75 | * |
||
76 | * @access public |
||
77 | * @param Trigger $trigger |
||
78 | * @param array $serverData |
||
79 | * @param int $msDelay |
||
80 | * @return boolean |
||
81 | */ |
||
82 | public function shouldTriggerBeFired(Trigger $trigger, array $serverData, $msDelay) |
||
101 | |||
102 | /** |
||
103 | * Check comparator validity |
||
104 | * |
||
105 | * @access private |
||
106 | * @throws \Exception if comparator is not valid |
||
107 | */ |
||
108 | private function checkIsComparatorValid() |
||
114 | |||
115 | /** |
||
116 | * Firing trigger |
||
117 | * |
||
118 | * @access private |
||
119 | * @param Trigger $trigger |
||
120 | * @param array $serverData |
||
121 | * @return boolean |
||
122 | */ |
||
123 | private function fireTrigger(Trigger $trigger, array $serverData) |
||
134 | } |
||
135 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..