LippertComponents /
Blend
| 1 | <?php |
||
| 2 | /** |
||
| 3 | * Created by PhpStorm. |
||
| 4 | * User: joshgulledge |
||
| 5 | * Date: 3/5/18 |
||
| 6 | * Time: 2:33 PM |
||
| 7 | */ |
||
| 8 | |||
| 9 | namespace LCI\Blend\Blendable; |
||
| 10 | |||
| 11 | trait DescriptionGetterAndSetter |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @return string |
||
| 15 | */ |
||
| 16 | public function getFieldDescription() |
||
| 17 | { |
||
| 18 | return $this->blendable_xpdo_simple_object_data['description']; |
||
| 19 | } |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param string $description |
||
| 23 | * @return $this |
||
| 24 | */ |
||
| 25 | public function setFieldDescription($description) |
||
| 26 | { |
||
| 27 | $this->blendable_xpdo_simple_object_data['description'] = $description; |
||
|
0 ignored issues
–
show
Bug
Best Practice
introduced
by
Loading history...
|
|||
| 28 | return $this; |
||
| 29 | } |
||
| 30 | } |