1 | <?php |
||
18 | final class LoaderEvent extends Event |
||
19 | { |
||
20 | public const EVENT = 'TwigView.TwigView.loader'; |
||
21 | |||
22 | /** |
||
23 | * @param \Twig\Loader\LoaderInterface $loader |
||
24 | * @return static |
||
25 | */ |
||
26 | 20 | public static function create(LoaderInterface $loader): LoaderEvent |
|
32 | |||
33 | /** |
||
34 | * @return \Twig\Loader\LoaderInterface |
||
35 | */ |
||
36 | 18 | public function getLoader(): LoaderInterface |
|
40 | |||
41 | /** |
||
42 | * @return string|\WyriHaximus\TwigView\Event\Twig\Loader\LoaderInterface |
||
43 | */ |
||
44 | 20 | public function getResultLoader(): LoaderInterface |
|
56 | } |
||
57 |