ContentTypeField   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 62
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 6
eloc 12
c 1
b 0
f 0
dl 0
loc 62
ccs 12
cts 12
cp 1
rs 10

6 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 2 1
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
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the Seams-CMS Delivery SDK package.
7
 *
8
 * (c) Seams-CMS.com
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace SeamsCMS\Delivery\Model;
15
16
/**
17
 * Class ContentTypeField
18
 * @package SeamsCMS\Delivery\Model
19
 */
20
class ContentTypeField
21
{
22
    use HydratorTrait;
23
24
    /** @var string */
25
    private $name = "";
26
    /** @var string */
27
    private $description = "";
28
    /** @var string */
29
    private $type = "";
30
    /** @var bool */
31
    private $isLocalized = false;
32
    /** @var bool */
33
    private $isRequired = false;
34
35
36
    /**
37
     * ContentTypeField constructor.
38
     *
39
     */
40 3
    final protected function __construct()
41
    {
42 3
    }
43
44
    /**
45
     * @return string
46
     */
47 2
    public function getName(): string
48
    {
49 2
        return $this->name;
50
    }
51
52
    /**
53
     * @return string
54
     */
55 1
    public function getDescription(): string
56
    {
57 1
        return $this->description;
58
    }
59
60
    /**
61
     * @return string
62
     */
63 1
    public function getType(): string
64
    {
65 1
        return $this->type;
66
    }
67
68
    /**
69
     * @return bool
70
     */
71 1
    public function isLocalized(): bool
72
    {
73 1
        return $this->isLocalized;
74
    }
75
76
    /**
77
     * @return bool
78
     */
79 2
    public function isRequired(): bool
80
    {
81 2
        return $this->isRequired;
82
    }
83
}
84