| Total Complexity | 4 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | class AnonymousViewCompiler |
||
| 16 | { |
||
| 17 | protected string $viewPath; |
||
| 18 | protected array $data; |
||
| 19 | |||
| 20 | public static function call(string $viewPath, array $data = []): string |
||
| 21 | { |
||
| 22 | return (new self($viewPath, $data))->__invoke(); |
||
| 23 | } |
||
| 24 | |||
| 25 | public function __construct(string $viewPath, array $data = []) |
||
| 29 | } |
||
| 30 | |||
| 31 | public function __invoke(): string |
||
| 40 | ); |
||
| 41 | } |
||
| 43 |