1 | <?php |
||
10 | abstract class AbstractServerResourceDecorator extends AbstractResourceDecorator implements ResourceDecoratorInterface |
||
11 | { |
||
12 | /** |
||
13 | * @var ServerResource |
||
14 | */ |
||
15 | public $resource; |
||
16 | |||
17 | public function __construct(ServerResource $resource) |
||
21 | |||
22 | public function displayTitle() |
||
26 | |||
27 | public function getPrepaidAmount() |
||
31 | |||
32 | public function getOverusePrice() |
||
36 | |||
37 | public function displayUnit() |
||
41 | |||
42 | public function displayOverusePrice() |
||
46 | |||
47 | public function displayPrepaidAmount() |
||
54 | } |
||
55 |
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.