Passed
Push — develop ( c0a645...f538e8 )
by Daniel
05:28
created

FeatureStacked   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

2 Methods

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