| 1 | <?php |
||
| 22 | class WebHemiTwigExtension extends Twig_Extension |
||
| 23 | { |
||
| 24 | /** @var string */ |
||
| 25 | private $viewPath; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * WebHemiTwigExtension constructor. |
||
| 29 | * |
||
| 30 | * @param string $viewPath |
||
| 31 | */ |
||
| 32 | 6 | public function __construct(string $viewPath) |
|
| 36 | |||
| 37 | /** |
||
| 38 | * Returns extension functions. |
||
| 39 | * |
||
| 40 | * @return array<Twig_SimpleFunction) |
||
|
|
|||
| 41 | */ |
||
| 42 | 1 | public function getFunctions() : array |
|
| 49 | |||
| 50 | /** |
||
| 51 | * Checks if a file exists on the view path. |
||
| 52 | * |
||
| 53 | * @param string $fileName |
||
| 54 | * @return bool |
||
| 55 | */ |
||
| 56 | public function isDefined(string $fileName) : bool |
||
| 61 | |||
| 62 | /** |
||
| 63 | * Returns render statistics. |
||
| 64 | * |
||
| 65 | * @return array |
||
| 66 | */ |
||
| 67 | public function getStat() : array |
||
| 71 | } |
||
| 72 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.