| Total Complexity | 4 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | class TemplateCanNotBeExpanded extends \InvalidArgumentException implements UriTemplateException |
||
| 19 | { |
||
| 20 | 44 | public static function dueToInvalidVariableSpecification(string $varSpec, string $expression): self |
|
| 21 | { |
||
| 22 | 44 | return new self('The variable specification "'.$varSpec.'" included in the expression "{'.$expression.'}" is invalid.'); |
|
| 23 | } |
||
| 24 | |||
| 25 | 6 | public static function dueToUsingReservedOperator(string $expression): self |
|
| 26 | { |
||
| 27 | 6 | return new self('The operator used in the expression "{'.$expression.'}" is reserved.'); |
|
| 28 | } |
||
| 29 | |||
| 30 | 4 | public static function dueToUnableToProcessValueListWithPrefix(string $variableName): self |
|
| 31 | { |
||
| 32 | 4 | return new self('The ":" modifier can not be applied on "'.$variableName.'" since it is a list of values.'); |
|
| 33 | } |
||
| 34 | |||
| 35 | 2 | public static function dueToNestedListOfValue(string $variableName): self |
|
| 38 | } |
||
| 39 | } |
||
| 40 |