| Total Complexity | 5 |
| Total Lines | 50 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | class RedirectAdapter extends ViewAdapterAbstract |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * Driver initialization |
||
| 24 | */ |
||
| 25 | 3 | public function __construct() |
|
| 26 | { |
||
| 27 | 3 | $this->setDriver($this); |
|
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Output method |
||
| 32 | * |
||
| 33 | * Controller must return array like: ['URL'] |
||
| 34 | * |
||
| 35 | * @param string $path Path to template |
||
| 36 | */ |
||
| 37 | 1 | public function show($path) |
|
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Output View into buffer and save it in variable |
||
| 50 | * |
||
| 51 | * @param string $path Path to template |
||
| 52 | * |
||
| 53 | * @return string View content |
||
| 54 | */ |
||
| 55 | 1 | public function get($path) |
|
| 56 | { |
||
| 57 | 1 | return ''; |
|
| 58 | } |
||
| 59 | |||
| 60 | /** |
||
| 61 | * Check template cache status |
||
| 62 | * |
||
| 63 | * @param string $tpl Template file |
||
| 64 | * |
||
| 65 | * @return bool Cache status |
||
| 66 | */ |
||
| 67 | 1 | public function isCached($tpl) |
|
| 70 | } |
||
| 71 | } |
||
| 72 |