| Total Complexity | 10 | 
| Total Lines | 64 | 
| Duplicated Lines | 0 % | 
| Coverage | 61.53% | 
| Changes | 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 | 8 | public function __construct(string $name, string $type)  | 
            |
| 21 |     { | 
            ||
| 22 | 8 | $this->name = $name;  | 
            |
| 23 | 8 | $this->type = $type;  | 
            |
| 24 | 8 | }  | 
            |
| 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 | 8 | public function toArray(): array  | 
            |
| 74 | }  | 
            ||
| 75 | }  | 
            ||
| 76 |