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

FeatureTextList   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setTitle() 0 3 1
A getTitle() 0 3 1
1
<?php
2
3
namespace Silverback\ApiComponentBundle\Entity\Component\Feature\TextList;
4
5
use ApiPlatform\Core\Annotation\ApiResource;
6
use Doctrine\ORM\Mapping as ORM;
7
use Silverback\ApiComponentBundle\Entity\Component\Feature\AbstractFeature;
8
use Symfony\Component\Serializer\Annotation\Groups;
9
10
/**
11
 * Class FeatureTextList
12
 * @package Silverback\ApiComponentBundle\Entity\Component\FeatureList
13
 * @author Daniel West <[email protected]>
14
 * @ApiResource(shortName="component/feature_text_lists")
15
 * @ORM\Entity()
16
 */
17
class FeatureTextList extends AbstractFeature
18
{
19
    /**
20
     * @Groups({"component", "content"})
21
     * @var null|string
22
     */
23
    protected $title;
24
25
    /**
26
     * @return null|string
27
     */
28 1
    public function getTitle(): ?string
29
    {
30 1
        return $this->title;
31
    }
32
33
    /**
34
     * @param null|string $title
35
     */
36 1
    public function setTitle(?string $title): void
37
    {
38 1
        $this->title = $title;
39 1
    }
40
}
41