Total Complexity | 7 |
Total Lines | 50 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class TaskRequest |
||
8 | { |
||
9 | private $id; |
||
10 | private $name; |
||
11 | private $assigneeId; |
||
12 | private $estimate; |
||
13 | private $status; |
||
14 | |||
15 | public function __construct(string $id, string $name, string $assigneeId, string $estimate, string $status) |
||
16 | { |
||
17 | $this->id = $id; |
||
18 | $this->name = $name; |
||
19 | $this->assigneeId = $assigneeId; |
||
20 | $this->estimate = $estimate; |
||
21 | $this->status = $status; |
||
22 | } |
||
23 | |||
24 | public function id(): string |
||
25 | { |
||
26 | return $this->id; |
||
27 | } |
||
28 | |||
29 | public function name(): string |
||
30 | { |
||
31 | return $this->name; |
||
32 | } |
||
33 | |||
34 | public function assigneeId(): string |
||
35 | { |
||
36 | return $this->assigneeId; |
||
37 | } |
||
38 | |||
39 | public function estimate(): string |
||
42 | } |
||
43 | |||
44 | public function status(): string |
||
45 | { |
||
46 | return $this->status; |
||
47 | } |
||
48 | |||
49 | public function toArray(): array |
||
57 | ]; |
||
58 | } |
||
59 | } |
||
60 |