| Total Complexity | 4 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | final class NativeEngine extends AbstractEngine |
||
| 20 | { |
||
| 21 | protected const EXTENSION = 'php'; |
||
| 22 | |||
| 23 | /** @var ContainerInterface */ |
||
| 24 | private $container; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * NativeEngine constructor. |
||
| 28 | * |
||
| 29 | * @param ContainerInterface $container |
||
| 30 | * @param string $extension |
||
| 31 | */ |
||
| 32 | public function __construct(ContainerInterface $container, string $extension = self::EXTENSION) |
||
| 33 | { |
||
| 34 | $this->container = $container; |
||
| 35 | $this->extension = $extension; |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @inheritdoc |
||
| 40 | */ |
||
| 41 | public function compile(string $path, ContextInterface $context): void |
||
| 43 | // doing nothing, native views can not be compiled |
||
| 44 | } |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @inheritdoc |
||
| 48 | */ |
||
| 49 | public function reset(string $path, ContextInterface $context): void |
||
| 50 | { |
||
| 51 | // doing nothing, native views can not be compiled |
||
| 52 | } |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @inheritdoc |
||
| 56 | */ |
||
| 57 | public function get(string $path, ContextInterface $context): ViewInterface |
||
| 60 | } |
||
| 61 | } |
||
| 62 |