1 | <?php |
||
14 | class Apcu implements ICache |
||
15 | { |
||
16 | use injector; |
||
17 | |||
18 | /** |
||
19 | * @var bool キャッシュ使用可能フラグ |
||
20 | */ |
||
21 | private $isAvairable; |
||
22 | |||
23 | /** |
||
24 | * @var string キャッシュ接頭辞 |
||
25 | */ |
||
26 | private $cachePrefix; |
||
27 | |||
28 | /** |
||
29 | * constructor |
||
30 | */ |
||
31 | public function __construct(Container $container) |
||
36 | |||
37 | /** |
||
38 | * {@inheritdoc} |
||
39 | */ |
||
40 | public function add($key, $value, $ttl = 0, $overrite = false): bool |
||
52 | |||
53 | /** |
||
54 | * {@inheritdoc} |
||
55 | */ |
||
56 | public function get($key) |
||
73 | |||
74 | /** |
||
75 | * {@inheritdoc} |
||
76 | */ |
||
77 | public function delete($key): bool |
||
86 | |||
87 | /** |
||
88 | * {@inheritdoc} |
||
89 | */ |
||
90 | public function clear(): bool |
||
102 | |||
103 | /** |
||
104 | * キャッシュライブラリが使用可能か検査する |
||
105 | * @return bool 使用可能でtrue |
||
106 | */ |
||
107 | private function isAvailableCacheLibrary(): bool |
||
117 | } |
||
118 |
Since your code implements the magic setter
_set
, this function will be called for any write access on an undefined variable. You can add the@property
annotation to your class or interface to document the existence of this variable.Since the property has write access only, you can use the @property-write 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.