| Total Complexity | 5 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | final class StepupProvider implements Stringable |
||
| 25 | { |
||
| 26 | private readonly string $provider; |
||
| 27 | |||
| 28 | public function __construct(string $provider) |
||
| 29 | { |
||
| 30 | if (trim($provider) === '') { |
||
| 31 | throw InvalidArgumentException::invalidType('non-empty string', 'provider', $provider); |
||
| 32 | } |
||
| 33 | |||
| 34 | $this->provider = trim($provider); |
||
|
|
|||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @return string |
||
| 39 | */ |
||
| 40 | public function getStepupProvider(): string |
||
| 41 | { |
||
| 42 | return $this->provider; |
||
| 43 | } |
||
| 44 | |||
| 45 | public function equals(StepupProvider $other): bool |
||
| 48 | } |
||
| 49 | |||
| 50 | public function __toString(): string |
||
| 53 | } |
||
| 54 | } |
||
| 55 |