Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
40 | public function notifyProject(array $project, $event_name, array $event_data) |
||
41 | { |
||
42 | if ($this->userSession->isLogged()) { |
||
|
|||
43 | $this->projectActivityModel->createEvent( |
||
44 | $project['id'], |
||
45 | $event_data['task']['id'], |
||
46 | $this->userSession->getId(), |
||
47 | $event_name, |
||
48 | $event_data |
||
49 | ); |
||
50 | } |
||
51 | } |
||
52 | } |
||
53 |
Since your code implements the magic getter
_get
, this function will be called for any read access on an undefined variable. You can add the@property
annotation to your class or interface to document the existence of this variable.If the property has read access only, you can use the @property-read annotation instead.
Of course, you may also just have mistyped another name, in which case you should fix the error.
See also the PhpDoc documentation for @property.