1 | <?php |
||
16 | class CoreView implements CoreInterface, IAnnotatable |
||
17 | { |
||
18 | use CommonUtils; |
||
19 | |||
20 | /** |
||
21 | * @var Container 依存コンテナ |
||
22 | */ |
||
23 | private $container; |
||
24 | |||
25 | /** |
||
26 | * @var ITemplateEngine テンプレートエンジン |
||
27 | */ |
||
28 | private $templateEngine; |
||
29 | |||
30 | /** |
||
31 | * @var LoggerAdapter ロガー |
||
32 | */ |
||
33 | private $logger; |
||
34 | |||
35 | /** |
||
36 | * {@inheritdoc} |
||
37 | */ |
||
38 | public function __construct(Container $container) |
||
44 | |||
45 | /** |
||
46 | * {@inheritdoc} |
||
47 | */ |
||
48 | public function __destruct() |
||
52 | |||
53 | /** |
||
54 | * {@inheritdoc} |
||
55 | * @Filter(type="initialize") |
||
56 | */ |
||
57 | public function __initialize(Container $container) |
||
60 | |||
61 | /** |
||
62 | * {@inheritdoc} |
||
63 | */ |
||
64 | public function __customAnnotation(array $annotation) |
||
67 | |||
68 | /** |
||
69 | * テンプレートエンジンを設定する |
||
70 | * @param ITemplateEngine テンプレートエンジン |
||
71 | */ |
||
72 | public function setTemplateEngine(ITemplateEngine $templateEngine = null) |
||
76 | |||
77 | /** |
||
78 | * テンプレートを描画する |
||
79 | * @param array<string> パラメータ |
||
80 | */ |
||
81 | public function draw(array $params) |
||
100 | |||
101 | /** |
||
102 | * テンプレートキャッシュを作成する |
||
103 | * @param string テンプレートファイルパス |
||
104 | * @param string 保存データ |
||
105 | * @param integer 有効期限 |
||
106 | */ |
||
107 | public function templateCache($filepath, $cacheData, $cacheTime) |
||
113 | |||
114 | /** |
||
115 | * 共通ヘッダを出力する |
||
116 | * @param String ファイルタイプ |
||
117 | */ |
||
118 | private function outputHeader($type) |
||
122 | |||
123 | /** |
||
124 | * publicディレクトリにある静的ファイルを表示する |
||
125 | * @param String ファイルパス |
||
126 | */ |
||
127 | final public function __file($filepath) |
||
140 | |||
141 | /** |
||
142 | * 画像、CSS、JavaScriptファイルを表示する |
||
143 | * @param string ファイルパス |
||
144 | */ |
||
145 | final private function display($filename) |
||
149 | |||
150 | /** |
||
151 | * ファイルをダウンロードする |
||
152 | * @param string ファイルパス |
||
153 | */ |
||
154 | final private function download($filename) |
||
159 | } |
||
160 |
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.