1 | <?php |
||
19 | class CommentPresenter 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 | * Present diff for humans date time. |
||
35 | * |
||
36 | * @return string |
||
37 | */ |
||
38 | public function created_at_diff() |
||
44 | |||
45 | /** |
||
46 | * Present formatted date time. |
||
47 | * |
||
48 | * @return string |
||
49 | */ |
||
50 | public function created_at_formatted() |
||
56 | |||
57 | /** |
||
58 | * Formats the created_at time ready to be used by bootstrap-datetimepicker. |
||
59 | * |
||
60 | * @return string |
||
61 | */ |
||
62 | public function created_at_datetimepicker() |
||
66 | |||
67 | /** |
||
68 | * Present formatted date time. |
||
69 | * |
||
70 | * @return string |
||
71 | */ |
||
72 | public function created_at_iso() |
||
76 | |||
77 | /** |
||
78 | * Returns a formatted timestamp for use within the timeline. |
||
79 | * |
||
80 | * @return string |
||
81 | */ |
||
82 | public function timestamp_formatted() |
||
86 | |||
87 | /** |
||
88 | * Return the iso timestamp for use within the timeline. |
||
89 | * |
||
90 | * @return string |
||
91 | */ |
||
92 | public function timestamp_iso() |
||
96 | |||
97 | /** |
||
98 | * Convert the presenter instance to an array. |
||
99 | * |
||
100 | * @return string[] |
||
101 | */ |
||
102 | public function toArray() |
||
109 | } |
||
110 |
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.