Passed
Push — develop ( 1103e1...06ad9c )
by Daniel
05:06
created

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