| Total Complexity | 4 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class Attributor |
||
| 9 | { |
||
| 10 | private string $case; |
||
| 11 | |||
| 12 | private array $attributes; |
||
| 13 | |||
| 14 | public function __construct(string $case, array $attributes) |
||
| 15 | { |
||
| 16 | $this->case = $case; |
||
| 17 | $this->attributes = $attributes; |
||
| 18 | } |
||
| 19 | |||
| 20 | public static function to(string $case, array $attributes): static |
||
| 21 | { |
||
| 22 | return new static($case, $attributes); |
||
| 23 | } |
||
| 24 | |||
| 25 | public function getCase(): string |
||
| 26 | { |
||
| 27 | return $this->case; |
||
| 28 | } |
||
| 29 | |||
| 30 | public function getAttributes(): array |
||
| 33 | } |
||
| 34 | } |
||
| 35 |