1 | <?php |
||
5 | class Message |
||
6 | { |
||
7 | /** |
||
8 | * Application Object |
||
9 | * |
||
10 | * @var \System\Application |
||
11 | */ |
||
12 | private $app; |
||
13 | |||
14 | /** |
||
15 | * Constructor |
||
16 | * |
||
17 | * @param \System\Application $app |
||
18 | */ |
||
19 | public function __construct(Application $app) |
||
23 | |||
24 | /** |
||
25 | * Get the right array from config/allow.php |
||
26 | * |
||
27 | * @property string $key |
||
28 | * @param array $arguments |
||
29 | * |
||
30 | * @return method editMsg() |
||
31 | */ |
||
32 | public function __call($key, $arguments) |
||
41 | |||
42 | /** |
||
43 | * Replace the key to the value in the given array $edit |
||
44 | * |
||
45 | * @property string $text |
||
46 | * @param array $edit |
||
47 | * |
||
48 | * @return string $text |
||
49 | */ |
||
50 | private function editMsg($text, $edit) |
||
60 | } |
||
61 |
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.