DescriptionGetterAndSetter::getFieldDescription()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 3
rs 10
cc 1
eloc 1
nc 1
nop 0
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
The property blendable_xpdo_simple_object_data does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
28
        return $this;
29
    }
30
}