1 | <?php namespace Arcanesoft\Seo\Models\Presenters; |
||
17 | trait FooterPresenter |
||
18 | { |
||
19 | /* ----------------------------------------------------------------- |
||
20 | | Accessors |
||
21 | | ----------------------------------------------------------------- |
||
22 | */ |
||
23 | /** |
||
24 | * Get the `locale_name` attribute. |
||
25 | * |
||
26 | * @return string|null |
||
27 | */ |
||
28 | public function getLocaleNameAttribute() |
||
32 | |||
33 | /** |
||
34 | * Get the `content` attribute. |
||
35 | * |
||
36 | * @return string |
||
37 | */ |
||
38 | public function getContentAttribute() |
||
45 | } |
||
46 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: