| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | public function index() |
||
| 15 | { |
||
| 16 | $this->response->setHeader("HTTP/1.0 404 Not Found"); |
||
|
|
|||
| 17 | |||
| 18 | $ops = $this->msg->notfound('ops'); |
||
| 19 | $goHome = $this->msg->notfound('goHome'); |
||
| 20 | $quote = $this->pickQuote(); |
||
| 21 | |||
| 22 | $context = [ |
||
| 23 | 'ops' => $ops, |
||
| 24 | 'goHome' => $goHome, |
||
| 25 | 'quote' => $quote, |
||
| 26 | ]; |
||
| 27 | return $this->view->render('website/pages/notfound', $context); |
||
| 28 | } |
||
| 29 | |||
| 40 |
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@propertyannotation 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.