Passed
Push — master ( 443842...86f0b2 )
by Joshua
05:55 queued 01:59
created

ContentTypeField   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 53
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 12
dl 0
loc 53
ccs 0
cts 19
cp 0
rs 10
c 0
b 0
f 0
wmc 5

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 3 1
A getDescription() 0 3 1
A getType() 0 3 1
A isLocalized() 0 3 1
A isRequired() 0 3 1
1
<?php
2
declare(strict_types=1);
3
4
namespace SeamsCMS\Delivery\Model;
5
6
class ContentTypeField
7
{
8
    use HydratorTrait;
9
10
    /** @var string */
11
    private $name;
12
    /** @var string */
13
    private $description;
14
    /** @var string */
15
    private $type;
16
    /** @var bool */
17
    private $isLocalized;
18
    /** @var bool */
19
    private $isRequired;
20
21
    /**
22
     * @return string
23
     */
24
    public function getName(): string
25
    {
26
        return $this->name;
27
    }
28
29
    /**
30
     * @return string
31
     */
32
    public function getDescription(): string
33
    {
34
        return $this->description;
35
    }
36
37
    /**
38
     * @return string
39
     */
40
    public function getType(): string
41
    {
42
        return $this->type;
43
    }
44
45
    /**
46
     * @return bool
47
     */
48
    public function isLocalized(): bool
49
    {
50
        return $this->isLocalized;
51
    }
52
53
    /**
54
     * @return bool
55
     */
56
    public function isRequired(): bool
57
    {
58
        return $this->isRequired;
59
    }
60
}
61