| 1 | <?php |
||
| 18 | class Log extends \yii\log\Dispatcher |
||
| 19 | { |
||
| 20 | protected $_level = Logger::LEVEL_WARNING; |
||
| 21 | |||
| 22 | protected $levels = [ |
||
| 23 | 'error' => Logger::LEVEL_ERROR, |
||
| 24 | 'warning' => Logger::LEVEL_WARNING, |
||
| 25 | 'info' => Logger::LEVEL_INFO, |
||
| 26 | ]; |
||
| 27 | |||
| 28 | protected $names; |
||
| 29 | |||
| 30 | public function setLevel($value) |
||
| 42 | |||
| 43 | public function getLevel() |
||
| 47 | |||
| 48 | public function getLevelName($level = null) |
||
| 55 | |||
| 56 | public function getLevelNames() |
||
| 64 | } |
||
| 65 |
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.