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

FeatureTextList::createItem()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 2
cp 0
crap 2
rs 10
c 0
b 0
f 0
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