| Total Complexity | 5 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | final class Command |
||
| 11 | { |
||
| 12 | 1 | public function __construct( |
|
| 13 | private string $title, |
||
| 14 | private string $content, |
||
| 15 | private PostStatus $status, |
||
| 16 | private User $user, |
||
| 17 | ) { |
||
| 18 | 1 | } |
|
| 19 | |||
| 20 | 1 | public function getTitle(): string |
|
| 21 | { |
||
| 22 | 1 | return $this->title; |
|
| 23 | } |
||
| 24 | |||
| 25 | 1 | public function getContent(): string |
|
| 26 | { |
||
| 27 | 1 | return $this->content; |
|
| 28 | } |
||
| 29 | |||
| 30 | 1 | public function getUser(): User |
|
| 31 | { |
||
| 32 | 1 | return $this->user; |
|
| 33 | } |
||
| 34 | |||
| 35 | 1 | public function getStatus(): PostStatus |
|
| 38 | } |
||
| 39 | } |
||
| 40 |