| 1 | <?php |
||
| 13 | class ViewHelper implements HelperInterface |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var \Staticka\Website |
||
| 17 | */ |
||
| 18 | protected $website; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Initializes the helper instance. |
||
| 22 | * |
||
| 23 | * @param \Staticka\Website $website |
||
| 24 | */ |
||
| 25 | public function __construct(Website $website) |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Returns the partial template. |
||
| 32 | * |
||
| 33 | * @param string $template |
||
| 34 | * @param array $data |
||
| 35 | * @return string |
||
| 36 | */ |
||
| 37 | public function include($template, array $data = array()) |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Returns the name of the helper. |
||
| 50 | * |
||
| 51 | * @return string |
||
| 52 | */ |
||
| 53 | public function name() |
||
| 57 | } |
||
| 58 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.