| Total Complexity | 5 |
| Total Lines | 53 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | class ResponseUrl implements IParam |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * @var string |
||
| 27 | */ |
||
| 28 | private $value; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * ResponseUrl constructor. |
||
| 32 | * |
||
| 33 | * @param string $value |
||
| 34 | * |
||
| 35 | * @throws InvalidArgumentException |
||
| 36 | */ |
||
| 37 | 11 | public function __construct(string $value) |
|
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @return string |
||
| 45 | */ |
||
| 46 | 2 | public function getValue(): string |
|
| 47 | { |
||
| 48 | 2 | return $this->value; |
|
| 49 | } |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @return string |
||
| 53 | */ |
||
| 54 | 9 | public function __toString(): string |
|
| 55 | { |
||
| 56 | 9 | return $this->value; |
|
| 57 | } |
||
| 58 | |||
| 59 | /** |
||
| 60 | * @return string |
||
| 61 | */ |
||
| 62 | 10 | public function getParamName(): string |
|
| 63 | { |
||
| 64 | 10 | return Param::RESPONSE_URL; |
|
| 65 | } |
||
| 66 | |||
| 67 | /** |
||
| 68 | * @param string $value |
||
| 69 | * |
||
| 70 | * @throws InvalidArgumentException |
||
| 71 | */ |
||
| 72 | 11 | protected function validate(string $value): void |
|
| 76 | } |
||
| 77 | } |
||
| 78 |