| 1 | <?php |
||
| 10 | class Generator |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var MetadataExtractor |
||
| 14 | */ |
||
| 15 | private $metadataExtractor; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var \Twig_Environment |
||
| 19 | */ |
||
| 20 | private $twig; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param \Tonic\Component\ApiLayer\JsonRpcExtensions\Documentation\MetadataExtractor $metadataExtractor |
||
| 24 | * @param \Twig_Environment $twig |
||
| 25 | */ |
||
| 26 | public function __construct(MetadataExtractor $metadataExtractor, \Twig_Environment $twig) |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @param MethodCollection $methodCollection |
||
| 34 | * @param string $templateName |
||
| 35 | * |
||
| 36 | * @return string |
||
| 37 | */ |
||
| 38 | public function generate(MethodCollection $methodCollection, $templateName = 'default.html.twig') |
||
| 44 | } |
||
| 45 |