| 1 | <?php |
||
| 4 | class CallbackDelegateAdapter implements Delegate { |
||
| 5 | /** @var callable */ |
||
| 6 | private $callback; |
||
| 7 | |||
| 8 | /** |
||
| 9 | * @param callback $callback |
||
| 10 | */ |
||
| 11 | public function __construct($callback) { |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @param string $resource |
||
| 17 | * @param array $vars |
||
| 18 | * @return string |
||
| 19 | */ |
||
| 20 | public function render($resource, array $vars = array()) { |
||
| 23 | } |
||
| 24 |