ContentTypeCollectionEntry::getName()   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 ContentTypeCollectionEntry
18
 * @package SeamsCMS\Delivery\Model
19
 */
20
class ContentTypeCollectionEntry
21
{
22
    use HydratorTrait;
23
24
    /** @var string */
25
    private $id = "";
26
    /** @var string */
27
    private $name = "";
28
    /** @var string */
29
    private $description = "";
30
    /** @var int */
31
    private $entryCount = 0;
32
33
    /**
34
     * ContentTypeCollectionEntry constructor.
35
     */
36 3
    final protected function __construct()
37
    {
38 3
    }
39
40
    /**
41
     * @return string
42
     */
43 1
    public function getId()
44
    {
45 1
        return $this->id;
46
    }
47
48
    /**
49
     * @return string
50
     */
51 1
    public function getName()
52
    {
53 1
        return $this->name;
54
    }
55
56
    /**
57
     * @return string
58
     */
59 1
    public function getDescription()
60
    {
61 1
        return $this->description;
62
    }
63
64
    /**
65
     * @return int
66
     */
67 2
    public function getEntryCount()
68
    {
69 2
        return $this->entryCount;
70
    }
71
}
72