1 | <?php |
||
13 | abstract class BaseBuilder extends GenericBaseBuilder |
||
14 | { |
||
15 | /** |
||
16 | * @var \Admingenerator\GeneratorBundle\Builder\Generator The generator. |
||
17 | */ |
||
18 | protected $generator; |
||
19 | |||
20 | /** |
||
21 | * @var array |
||
22 | */ |
||
23 | protected $templatesToGenerate = array(); |
||
24 | |||
25 | /** |
||
26 | * @var \Symfony\Component\HttpFoundation\ParameterBag |
||
27 | */ |
||
28 | protected $variables; |
||
29 | |||
30 | public function __construct() |
||
36 | |||
37 | /** |
||
38 | * Set files to generate |
||
39 | * |
||
40 | * @param array $templatesToGenerate (key => template file; value => output file name) |
||
41 | */ |
||
42 | public function setTemplatesToGenerate(array $templatesToGenerate) |
||
46 | |||
47 | /** |
||
48 | * Add a file to generate |
||
49 | * |
||
50 | * @param string $template |
||
51 | * @param string $outputName |
||
52 | */ |
||
53 | public function addTemplateToGenerate($template, $outputName) |
||
57 | |||
58 | /** |
||
59 | * Retrieve files to generate. |
||
60 | * |
||
61 | * @return array |
||
62 | */ |
||
63 | public function getTemplatesToGenerate() |
||
67 | |||
68 | /** |
||
69 | * Check if builder must generate multiple files |
||
70 | * based on templatesToGenerate property. |
||
71 | * |
||
72 | * @return boolean |
||
73 | */ |
||
74 | public function isMultiTemplatesBuilder() |
||
80 | |||
81 | /** |
||
82 | * (non-PHPdoc) |
||
83 | * @see \TwigGenerator\Builder\BaseBuilder::writeOnDisk() |
||
84 | */ |
||
85 | public function writeOnDisk($outputDirectory) |
||
97 | |||
98 | protected function getTwigEnvironment() |
||
115 | |||
116 | /** |
||
117 | * @return string the YamlKey |
||
118 | */ |
||
119 | public function getYamlKey() |
||
123 | |||
124 | public function setVariables(array $variables) |
||
129 | |||
130 | /** |
||
131 | * (non-PHPdoc) |
||
132 | * @see Builder/Admingenerator\GeneratorBundle\Builder.BuilderInterface::getVariables() |
||
133 | */ |
||
134 | public function getVariables() |
||
138 | |||
139 | /** |
||
140 | * (non-PHPdoc) |
||
141 | * @see Builder/Admingenerator\GeneratorBundle\Builder.BuilderInterface::hasVariable() |
||
142 | * @param string $key |
||
143 | * @return bool |
||
144 | */ |
||
145 | public function hasVariable($key) |
||
149 | |||
150 | /** |
||
151 | * (non-PHPdoc) |
||
152 | * @see Builder/Admingenerator\GeneratorBundle\Builder.BuilderInterface::getVariable() |
||
153 | */ |
||
154 | public function getVariable($key, $default = null, $deep = false) |
||
158 | |||
159 | /** |
||
160 | * Get model class from model param |
||
161 | * @return string |
||
162 | */ |
||
163 | public function getModelClass() |
||
167 | |||
168 | /** |
||
169 | * Set the generator. |
||
170 | * |
||
171 | * @param \TwigGenerator\Builder\Generator $generator A generator. |
||
172 | */ |
||
173 | public function setGenerator(GenericBaseGenerator $generator) |
||
184 | |||
185 | /** |
||
186 | * Return the generator. |
||
187 | * |
||
188 | * @return \Admingenerator\GeneratorBundle\Builder\Generator The generator. |
||
189 | */ |
||
190 | public function getGenerator() |
||
194 | } |
||
195 |
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.