| 1 | <?php namespace Arcanesoft\Seo\Models\Presenters; |
||
| 17 | trait FooterPresenter |
||
| 18 | { |
||
| 19 | /* ----------------------------------------------------------------- |
||
| 20 | | Accessors |
||
| 21 | | ----------------------------------------------------------------- |
||
| 22 | */ |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Get the `locale_name` attribute. |
||
| 26 | * |
||
| 27 | * @return string|null |
||
| 28 | */ |
||
| 29 | public function getLocaleNameAttribute() |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Get the `content` attribute. |
||
| 36 | * |
||
| 37 | * @return string |
||
| 38 | */ |
||
| 39 | public function getContentAttribute() |
||
| 46 | } |
||
| 47 |
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: