Total Complexity | 5 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class FetchEventRequest extends AbstractRequest |
||
11 | { |
||
12 | public function getEventId() |
||
13 | { |
||
14 | return $this->getParameter('eventId'); |
||
15 | } |
||
16 | |||
17 | public function setEventId($value) |
||
18 | { |
||
19 | return $this->setParameter('eventId', $value); |
||
20 | } |
||
21 | |||
22 | public function getData() |
||
23 | { |
||
24 | $this->validate('eventId'); |
||
25 | $this->action = '/events/'.$this->getEventId(); |
||
26 | return null; |
||
27 | } |
||
28 | |||
29 | public function sendData($data) |
||
40 | } |
||
41 | } |
||
42 |
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..