1 | <?php |
||
10 | class Manager extends Component |
||
11 | { |
||
12 | /** |
||
13 | * Get cache data. If data not exists, generate data and save to cache |
||
14 | */ |
||
15 | public function load($key, $closure, $lifetime = 60) |
||
30 | |||
31 | public function save($key, $data, $lifetime) |
||
38 | |||
39 | public function delete($key) |
||
46 | |||
47 | public function key(array $params = []) |
||
51 | |||
52 | } |
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.