Passed
Push — develop ( 53a66f...07e04a )
by Daniel
05:35
created

FeatureColumnsItem::setDescription()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Silverback\ApiComponentBundle\Entity\Component\Feature\Columns;
4
5
use ApiPlatform\Core\Annotation\ApiResource;
6
use Doctrine\ORM\Mapping as ORM;
7
use Silverback\ApiComponentBundle\Entity\Component\Feature\AbstractFeatureItem;
8
use Symfony\Component\Serializer\Annotation\Groups;
9
10
/**
11
 * Class FeatureColumnsItem
12
 * @package Silverback\ApiComponentBundle\Entity\Component\FeatureList
13
 * @author Daniel West <[email protected]>
14
 * @ApiResource(shortName="component/feature_columns_items")
15
 * @ORM\Entity()
16
 */
17
class FeatureColumnsItem extends AbstractFeatureItem
18
{
19
    /**
20
     * @Groups({"component", "content"})
21
     * @var null|string
22
     */
23
    protected $description;
24
25
    /**
26
     * @return null|string
27
     */
28 1
    public function getDescription(): ?string
29
    {
30 1
        return $this->description;
31
    }
32
33
    /**
34
     * @param null|string $description
35
     */
36 1
    public function setDescription(?string $description): void
37
    {
38 1
        $this->description = $description;
39 1
    }
40
}
41