Test Setup Failed
Push — main ( abdcb9...2e5f68 )
by Slawomir
04:37
created

UpdateExistingPostDto::getTitle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
namespace App\Modules\Posts\Domain\Dto;
4
5
class UpdateExistingPostDto
6
{
7
8
    /**
9
     * @param string $id
10
     * @param string $title
11
     * @param string $body
12
     * @param string $summary
13
     * @param array<string> $tags
14
     * @param \DateTime $updatedAt
15
     */
16
    public function __construct(
17
        private string    $id,
18
        private string    $title,
19
        private string    $body,
20
        private string    $summary,
21
        private array     $tags,
22
        private \DateTime $updatedAt
23
    )
24
    {
25
    }
26
27
    /**
28
     * @return string
29
     */
30
    public function getId(): string
31
    {
32
        return $this->id;
33
    }
34
35
    /**
36
     * @return string
37
     */
38
    public function getTitle(): string
39
    {
40
        return $this->title;
41
    }
42
43
    /**
44
     * @return string
45
     */
46
    public function getBody(): string
47
    {
48
        return $this->body;
49
    }
50
51
    /**
52
     * @return string
53
     */
54
    public function getSummary(): string
55
    {
56
        return $this->summary;
57
    }
58
59
    /**
60
     * @return string[]
61
     */
62
    public function getTags(): array
63
    {
64
        return $this->tags;
65
    }
66
67
    /**
68
     * @return \DateTime
69
     */
70
    public function getUpdatedAt(): \DateTime
71
    {
72
        return $this->updatedAt;
73
    }
74
75
76
}