| Total Complexity | 5 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class UpdateExistingCommentsPostHeaderDto |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @param Ulid $id |
||
| 11 | * @param string $title |
||
| 12 | * @param array $tags |
||
| 13 | * @param int $version |
||
| 14 | */ |
||
| 15 | public function __construct(private Ulid $id, |
||
| 16 | 4 | private string $title, |
|
| 17 | private array $tags, |
||
| 18 | private int $version) |
||
| 19 | { |
||
| 20 | } |
||
| 21 | |||
| 22 | 4 | /** |
|
| 23 | * @return Ulid |
||
| 24 | */ |
||
| 25 | public function getId(): Ulid |
||
| 28 | } |
||
| 29 | 4 | ||
| 30 | |||
| 31 | /** |
||
| 32 | * @return string |
||
| 33 | */ |
||
| 34 | public function getTitle(): string |
||
| 35 | { |
||
| 36 | 4 | return $this->title; |
|
| 37 | } |
||
| 38 | 4 | ||
| 39 | /** |
||
| 40 | * @return array |
||
| 41 | */ |
||
| 42 | public function getTags(): array |
||
| 43 | { |
||
| 44 | 4 | return $this->tags; |
|
| 45 | } |
||
| 46 | 4 | ||
| 47 | /** |
||
| 48 | * @return int |
||
| 49 | */ |
||
| 50 | public function getVersion(): int |
||
| 53 | } |
||
| 54 | } |