Total Complexity | 10 |
Total Lines | 71 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class Template |
||
8 | { |
||
9 | /** |
||
10 | * @var int |
||
11 | */ |
||
12 | protected $id; |
||
13 | |||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | protected $name; |
||
18 | |||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | protected $source; |
||
23 | |||
24 | /** |
||
25 | * @var \DateTimeImmutable |
||
26 | */ |
||
27 | protected $lastModified; |
||
28 | |||
29 | public function getId(): int |
||
30 | { |
||
31 | return $this->id; |
||
32 | } |
||
33 | |||
34 | public function setName(string $name): self |
||
35 | { |
||
36 | $this->name = $name; |
||
37 | |||
38 | return $this; |
||
39 | } |
||
40 | |||
41 | public function getName(): ?string |
||
42 | { |
||
43 | return $this->name; |
||
44 | } |
||
45 | |||
46 | public function setSource(string $source): self |
||
47 | { |
||
48 | $this->source = $source; |
||
49 | |||
50 | return $this; |
||
51 | } |
||
52 | |||
53 | public function getSource(): ?string |
||
54 | { |
||
55 | return $this->source; |
||
56 | } |
||
57 | |||
58 | public function setLastModified(\DateTimeImmutable $lastModified): self |
||
59 | { |
||
60 | $this->lastModified = $lastModified; |
||
61 | |||
62 | return $this; |
||
63 | } |
||
64 | |||
65 | public function getLastModified(): ?\DateTimeImmutable |
||
66 | { |
||
67 | return $this->lastModified; |
||
68 | } |
||
69 | |||
70 | public function setLastModifiedToCurrentMoment(): void |
||
73 | } |
||
74 | |||
75 | public function __toString(): string |
||
78 | } |
||
79 | } |
||
80 |