1 | <?php |
||
19 | class IssuePresenter extends AbstractPresenter |
||
20 | { |
||
21 | use TimestampsTrait; |
||
22 | |||
23 | /** |
||
24 | * Renders the message from Markdown into HTML. |
||
25 | * |
||
26 | * @return string |
||
27 | */ |
||
28 | public function formattedMessage() |
||
32 | |||
33 | /** |
||
34 | * Formats the created_at time ready to be used by bootstrap-datetimepicker. |
||
35 | * |
||
36 | * @return string |
||
37 | */ |
||
38 | public function created_at_datetimepicker() |
||
42 | |||
43 | /** |
||
44 | * Returns a formatted timestamp for use within the timeline. |
||
45 | * |
||
46 | * @return string |
||
47 | */ |
||
48 | public function timestamp_formatted() |
||
52 | |||
53 | /** |
||
54 | * Return the iso timestamp for use within the timeline. |
||
55 | * |
||
56 | * @return string |
||
57 | */ |
||
58 | public function timestamp_iso() |
||
62 | |||
63 | /** |
||
64 | * Present the status with an icon. |
||
65 | * |
||
66 | * @return string |
||
67 | */ |
||
68 | public function icon() |
||
85 | |||
86 | /** |
||
87 | * Convert the presenter instance to an array. |
||
88 | * |
||
89 | * @return string[] |
||
90 | */ |
||
91 | public function toArray() |
||
98 | } |
||
99 |
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.