DescriptionGetterAndSetter   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 4
c 2
b 0
f 0
dl 0
loc 18
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getFieldDescription() 0 3 1
A setFieldDescription() 0 4 1
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
}