Total Complexity | 6 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
5 | trait DescriptionTrait |
||
6 | { |
||
7 | |||
8 | /** |
||
9 | * @var StringValueNode|null |
||
10 | */ |
||
11 | protected $description; |
||
12 | |||
13 | /** |
||
14 | * @return StringValueNode|null |
||
15 | */ |
||
16 | public function getDescription(): ?StringValueNode |
||
17 | { |
||
18 | return $this->description; |
||
19 | } |
||
20 | |||
21 | /** |
||
22 | * @return null|string |
||
23 | */ |
||
24 | public function getDescriptionValue(): ?string |
||
25 | { |
||
26 | return null !== $this->description ? $this->description->getValue() : null; |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * @return array|null |
||
31 | */ |
||
32 | public function getDescriptionAsArray(): ?array |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * @param StringValueNode|null $description |
||
39 | * @return $this |
||
40 | */ |
||
41 | public function setDescription(?StringValueNode $description) |
||
45 | } |
||
46 | } |
||
47 |