| Total Complexity | 7 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Coverage | 85.71% |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class ViewException extends FrameworkException |
||
| 15 | { |
||
| 16 | public static function invalidComponentMethod(string $class, string $method) |
||
| 17 | { |
||
| 18 | 2 | return new static(lang('View.invalidComponentMethod', ['class' => $class, 'method' => $method])); |
|
| 19 | } |
||
| 20 | |||
| 21 | public static function missingComponentParameters(string $class, string $method) |
||
| 22 | { |
||
| 23 | 2 | return new static(lang('View.missingComponentParameters', ['class' => $class, 'method' => $method])); |
|
| 24 | } |
||
| 25 | |||
| 26 | public static function invalidComponentParameter(string $key) |
||
| 27 | { |
||
| 28 | 2 | return new static(lang('View.invalidComponentParameter', [$key])); |
|
| 29 | } |
||
| 30 | |||
| 31 | public static function noComponentClass() |
||
| 32 | { |
||
| 33 | 2 | return new static(lang('View.noComponentClass')); |
|
| 34 | } |
||
| 35 | |||
| 36 | public static function invalidComponentClass(?string $class = null) |
||
| 37 | { |
||
| 38 | 2 | return new static(lang('View.invalidComponentClass', [$class])); |
|
| 39 | } |
||
| 40 | |||
| 41 | public static function tagSyntaxError(string $output) |
||
| 44 | } |
||
| 45 | |||
| 46 | public static function invalidDecorator(string $className) |
||
| 49 | } |
||
| 50 | } |
||
| 51 |