Completed
Push — master ( 8253ba...a023d2 )
by Daniel
16:49 queued 05:23
created

FeatureColumnsItem   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 22
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getDescription() 0 3 1
A setDescription() 0 3 1
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
    public function getDescription(): ?string
29
    {
30
        return $this->description;
31
    }
32
33
    /**
34
     * @param null|string $description
35
     */
36
    public function setDescription(?string $description): void
37
    {
38
        $this->description = $description;
39
    }
40
}
41