| Total Complexity | 7 |
| Total Lines | 68 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 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 |
||
| 73 | } |
||
| 74 | |||
| 75 | |||
| 76 | } |