Total Complexity | 10 |
Total Lines | 64 |
Duplicated Lines | 0 % |
Coverage | 61.53% |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
10 | class StoreProductRequest |
||
11 | { |
||
12 | use HasDescription; |
||
13 | use HasCategory; |
||
14 | use HasImageUrl; |
||
15 | use HasHomeUrl; |
||
16 | |||
17 | protected string $name; |
||
18 | protected string $type; |
||
19 | |||
20 | 10 | public function __construct(string $name, string $type) |
|
21 | { |
||
22 | 10 | $this->name = $name; |
|
23 | 10 | $this->type = $type; |
|
24 | 10 | } |
|
25 | |||
26 | public function getName(): string |
||
29 | } |
||
30 | |||
31 | public function setName(string $name): self |
||
32 | { |
||
33 | $this->name = $name; |
||
34 | |||
35 | return $this; |
||
36 | } |
||
37 | |||
38 | public function getType(): string |
||
39 | { |
||
40 | return $this->type; |
||
41 | } |
||
42 | |||
43 | public function setType(string $type): self |
||
48 | } |
||
49 | |||
50 | 10 | public function toArray(): array |
|
51 | { |
||
76 |