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

ContentMeta::getContentType()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 3
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
declare(strict_types=1);
3
4
namespace SeamsCMS\Delivery\Model;
5
6
class ContentMeta
7
{
8
    use HydratorTrait {
9
        fromArray as private fromArrayTrait;
10
    }
11
12
    /** @var string */
13
    private $revisionId;
14
    /** @var string */
15
    private $entryId;
16
    /** @var string */
17
    private $contentType;
18
    /** @var \DateTimeImmutable */
19
    private $createdAt;
20
    /** @var string */
21
    private $createdBy;
22
    /** @var \DateTimeImmutable */
23
    private $updatedAt;
24
    /** @var string */
25
    private $updatedBy;
26
27
    /**
28
     * @return string
29
     */
30
    public function getRevisionId(): string
31
    {
32
        return $this->revisionId;
33
    }
34
35
    /**
36
     * @return string
37
     */
38
    public function getEntryId(): string
39
    {
40
        return $this->entryId;
41
    }
42
43
    /**
44
     * @return string
45
     */
46
    public function getContentType(): string
47
    {
48
        return $this->contentType;
49
    }
50
51
    /**
52
     * @return \DateTimeImmutable
53
     */
54
    public function getCreatedAt(): \DateTimeImmutable
55
    {
56
        return $this->createdAt;
57
    }
58
59
    /**
60
     * @return string
61
     */
62
    public function getCreatedBy(): string
63
    {
64
        return $this->createdBy;
65
    }
66
67
    /**
68
     * @return \DateTimeImmutable
69
     */
70
    public function getUpdatedAt(): \DateTimeImmutable
71
    {
72
        return $this->updatedAt;
73
    }
74
75
    /**
76
     * @return string
77
     */
78
    public function getUpdatedBy(): string
79
    {
80
        return $this->updatedBy;
81
    }
82
83
    public static function fromArray(array $data)
84
    {
85
        return self::fromArrayTrait($data);
86
    }
87
}
88