| Total Complexity | 4 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | class RetourVariable implements ViteVariableInterface |
||
| 24 | { |
||
| 25 | use ViteVariableTrait; |
||
| 26 | |||
| 27 | // Public Methods |
||
| 28 | // ========================================================================= |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Returns the list of matching schemes |
||
| 32 | * |
||
| 33 | * @return array |
||
| 34 | */ |
||
| 35 | public function getMatchesList(): array |
||
| 36 | { |
||
| 37 | return Retour::$plugin->redirects->getMatchesList(); |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Return the http status code |
||
| 42 | * |
||
| 43 | * @return int |
||
| 44 | */ |
||
| 45 | public function getHttpStatus(): int |
||
| 48 | } |
||
| 49 | |||
| 50 | /** |
||
| 51 | * Return whether we are running Craft 3.1 or later |
||
| 52 | * |
||
| 53 | * @return bool |
||
| 54 | */ |
||
| 55 | public function craft31(): bool |
||
| 58 | } |
||
| 59 | |||
| 60 | /** |
||
| 61 | * Return whether we are running Craft 3.2 or later |
||
| 62 | * |
||
| 63 | * @return bool |
||
| 64 | */ |
||
| 65 | public function craft32(): bool |
||
| 70 |