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

ContentMeta   A

Complexity

Total Complexity 8

Size/Duplication

Total Lines 80
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 18
dl 0
loc 80
ccs 0
cts 31
cp 0
rs 10
c 0
b 0
f 0
wmc 8

8 Methods

Rating   Name   Duplication   Size   Complexity  
A getUpdatedBy() 0 3 1
A fromArray() 0 3 1
A getCreatedAt() 0 3 1
A getCreatedBy() 0 3 1
A getEntryId() 0 3 1
A getUpdatedAt() 0 3 1
A getRevisionId() 0 3 1
A getContentType() 0 3 1
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