1 | <?php |
||
19 | class AssetHelper extends Base |
||
20 | { |
||
21 | /** |
||
22 | * Add a Javascript asset. |
||
23 | * |
||
24 | * @param string $filename Filename |
||
25 | * @param bool $async |
||
26 | * |
||
27 | * @return string |
||
28 | */ |
||
29 | public function js($filename, $async = false) |
||
33 | |||
34 | /** |
||
35 | * Add a stylesheet asset. |
||
36 | * |
||
37 | * @param string $filename Filename |
||
38 | * @param bool $is_file Add file timestamp |
||
39 | * @param string $media Media |
||
40 | * |
||
41 | * @return string |
||
42 | */ |
||
43 | public function css($filename, $is_file = true, $media = 'screen') |
||
47 | |||
48 | /** |
||
49 | * Get custom css. |
||
50 | * |
||
51 | * @return string |
||
52 | */ |
||
53 | public function customCss() |
||
61 | |||
62 | /** |
||
63 | * Get CSS for task colors. |
||
64 | * |
||
65 | * @return string |
||
66 | */ |
||
67 | public function colorCss() |
||
71 | } |
||
72 |
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.