| Total Complexity | 8 |
| Total Lines | 63 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class UpdateProductRequest |
||
| 11 | { |
||
| 12 | use HasProductDescription; |
||
| 13 | use HasProductCategory; |
||
| 14 | use HasImageUrl; |
||
| 15 | use HasHomeUrl; |
||
| 16 | |||
| 17 | protected string $productId; |
||
| 18 | |||
| 19 | 5 | public function __construct(string $productId) |
|
| 22 | 5 | } |
|
| 23 | |||
| 24 | 3 | public function getProductId(): string |
|
| 27 | } |
||
| 28 | |||
| 29 | 1 | public function setProductId(string $productId): self |
|
| 30 | { |
||
| 31 | 1 | $this->productId = $productId; |
|
| 32 | |||
| 33 | 1 | return $this; |
|
| 34 | } |
||
| 35 | |||
| 36 | 5 | public function toArray(): array |
|
| 73 | } |
||
| 74 | } |
||
| 75 |