| Total Complexity | 5 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | class UriTemplateException extends \InvalidArgumentException implements UriException |
||
| 19 | { |
||
| 20 | 4 | public static function dueToInvalidTemplate(string $template): self |
|
| 21 | { |
||
| 22 | 4 | return new self('The submitted template "'.$template.'" contains invalid expressions.'); |
|
| 23 | } |
||
| 24 | |||
| 25 | 44 | public static function dueToInvalidVariableSpecification(string $varSpec, string $expression): self |
|
| 26 | { |
||
| 27 | 44 | return new self('The variable specification "'.$varSpec.'" included in the expression "{'.$expression.'}" is invalid.'); |
|
| 28 | } |
||
| 29 | |||
| 30 | 6 | public static function dueToUsingReservedOperator(string $expression): self |
|
| 31 | { |
||
| 32 | 6 | return new self('The operator used in the expression "{'.$expression.'}" is reserved.'); |
|
| 33 | } |
||
| 34 | |||
| 35 | 4 | public static function dueToUnableToProcessValueListWithPrefix(string $variableName): self |
|
| 38 | } |
||
| 39 | |||
| 40 | 2 | public static function dueToNestedListOfValue(string $variableName): self |
|
| 43 | } |
||
| 44 | } |
||
| 45 |