Total Complexity | 5 |
Total Lines | 48 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class PostCommentDto |
||
8 | { |
||
9 | |||
10 | /** |
||
11 | * @param Ulid $id |
||
12 | * @param string $author |
||
13 | * @param string $comment |
||
14 | * @param \DateTime $createdAt |
||
15 | */ |
||
16 | public function __construct( |
||
17 | private Ulid $id, |
||
18 | private string $author, |
||
19 | private string $comment, |
||
20 | private \DateTime $createdAt |
||
21 | ) |
||
22 | { |
||
23 | } |
||
24 | |||
25 | /** |
||
26 | * @return Ulid |
||
27 | */ |
||
28 | public function getId(): Ulid |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * @return string |
||
35 | */ |
||
36 | public function getAuthor(): string |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * @return string |
||
43 | */ |
||
44 | public function getComment(): string |
||
45 | { |
||
46 | return $this->comment; |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * @return \DateTime |
||
51 | */ |
||
52 | public function getCreatedAt(): \DateTime |
||
55 | } |
||
56 | |||
57 | |||
58 | } |