1 | <?php namespace Arcanesoft\Blog\Models\Presenters; |
||
17 | trait PostPresenter |
||
18 | { |
||
19 | /* ----------------------------------------------------------------- |
||
20 | | Accessors |
||
21 | | ----------------------------------------------------------------- |
||
22 | */ |
||
23 | |||
24 | /** |
||
25 | * Get the locale's native name. |
||
26 | * |
||
27 | * @return string |
||
28 | */ |
||
29 | public function getLocaleNativeAttribute() |
||
33 | |||
34 | /** |
||
35 | * Get the content attribute. |
||
36 | * |
||
37 | * @return \Illuminate\Support\HtmlString |
||
38 | */ |
||
39 | public function getContentAttribute() |
||
43 | |||
44 | /** |
||
45 | * Get the status attribute. |
||
46 | * |
||
47 | * @return string |
||
48 | */ |
||
49 | public function getStatusAttribute() |
||
53 | |||
54 | /** |
||
55 | * Set the status attribute. |
||
56 | * |
||
57 | * @param string $status |
||
58 | * |
||
59 | * @return self |
||
60 | */ |
||
61 | public function setStatusAttribute($status) |
||
67 | |||
68 | /** |
||
69 | * Get the status name attribute. |
||
70 | * |
||
71 | * @return string|null |
||
72 | */ |
||
73 | public function getStatusNameAttribute() |
||
79 | |||
80 | /** |
||
81 | * Get the post statuses. |
||
82 | * |
||
83 | * @return \Illuminate\Support\Collection |
||
84 | */ |
||
85 | public static function getStatuses() |
||
91 | |||
92 | /* ----------------------------------------------------------------- |
||
93 | | URL Accessors |
||
94 | | ----------------------------------------------------------------- |
||
95 | */ |
||
96 | |||
97 | /** |
||
98 | * Get the show URL. |
||
99 | * |
||
100 | * @return string |
||
101 | */ |
||
102 | public function getShowUrl() |
||
106 | |||
107 | /** |
||
108 | * Get the edit URL. |
||
109 | * |
||
110 | * @return string |
||
111 | */ |
||
112 | public function getEditUrl() |
||
116 | } |
||
117 |
An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.
If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.