ContentTypeField::getType()   A
last analyzed

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 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 0
crap 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