Total Complexity | 6 |
Total Lines | 57 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class FindCommentsByPostIdQueryResponse |
||
8 | { |
||
9 | /** |
||
10 | * @param Ulid $id |
||
11 | * @param string $author |
||
12 | * @param string $body |
||
13 | * @param Ulid|null $parentId |
||
14 | * @param \DateTime $createdAt |
||
15 | */ |
||
16 | public function __construct( |
||
17 | private Ulid $id, |
||
18 | private string $author, |
||
19 | private string $body, |
||
20 | private ?Ulid $parentId, |
||
21 | private \DateTime $createdAt |
||
22 | ) |
||
23 | { |
||
24 | } |
||
25 | |||
26 | /** |
||
27 | * @return Ulid |
||
28 | */ |
||
29 | public function getId(): Ulid |
||
30 | { |
||
31 | return $this->id; |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * @return string |
||
36 | */ |
||
37 | public function getAuthor(): string |
||
38 | { |
||
39 | return $this->author; |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * @return string |
||
44 | */ |
||
45 | public function getBody(): string |
||
46 | { |
||
47 | return $this->body; |
||
48 | } |
||
49 | |||
50 | /** |
||
51 | * @return Ulid|null |
||
52 | */ |
||
53 | public function getParentId(): ?Ulid |
||
56 | } |
||
57 | |||
58 | /** |
||
59 | * @return \DateTime |
||
60 | */ |
||
61 | public function getCreatedAt(): \DateTime |
||
64 | } |
||
65 | |||
66 | |||
67 | } |