| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | public function __construct() |
||
| 16 | { |
||
| 17 | parent::__construct(); |
||
| 18 | |||
| 19 | $this->set('documentation', function () { |
||
| 20 | $fc = new \Anax\Content\CFileContent(); |
||
| 21 | $fc->setBasePath(ANAX_INSTALL_PATH . 'docs/documentation'); |
||
| 22 | return $fc; |
||
| 23 | }); |
||
| 24 | |||
| 25 | $this->theme->setVariable('style', "article {max-width: 650px;}"); |
||
|
|
|||
| 26 | $this->theme->setBaseTitle(" - Anax documentation"); |
||
| 27 | } |
||
| 28 | } |
||
| 29 |
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.