Failed Conditions
Push — master ( 356b1f...e74f9e )
by Adrien
10:44
created

HasDescription::setDescription()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Application\Traits;
6
7
trait HasDescription
8
{
9
    /**
10
     * @var string
11
     *
12
     * @ORM\Column(type="text", length=65535)
13
     */
14
    private $description = '';
15
16
    /**
17
     * Set description
18
     *
19
     * @param string $description
20
     */
21
    public function setDescription(string $description): void
22
    {
23
        $this->description = $description;
24
    }
25
26
    /**
27
     * Get description
28
     *
29
     * @return string
30
     */
31
    public function getDescription(): string
32
    {
33
        return $this->description;
34
    }
35
}
36