Test Failed
Push — develop ( b13210...c32797 )
by Daniel
04:26
created

FeatureColumns   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

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