1 | <?php |
||
20 | class DocumentGenerator extends EntityGenerator |
||
21 | { |
||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | private $documentType; |
||
26 | |||
27 | /** |
||
28 | * @var string |
||
29 | */ |
||
30 | protected static $setMethodTemplate = |
||
31 | '/** |
||
32 | * <description> |
||
33 | * |
||
34 | * @param <variableType> $<variableName> |
||
35 | */ |
||
36 | public function <methodName>(<methodTypeHint>$<variableName><variableDefault>) |
||
37 | { |
||
38 | <spaces>$this-><fieldName> = $<variableName>; |
||
39 | }'; |
||
40 | |||
41 | /** |
||
42 | * {@inheritdoc} |
||
43 | */ |
||
44 | protected function generateEntityUse() |
||
48 | |||
49 | /** |
||
50 | * {@inheritdoc} |
||
51 | */ |
||
52 | protected function generateEntityDocBlock(ClassMetadataInfo $metadata) |
||
73 | |||
74 | /** |
||
75 | * {@inheritdoc} |
||
76 | */ |
||
77 | protected function generateFieldMappingPropertyDocBlock(array $fieldMapping, ClassMetadataInfo $metadata) |
||
107 | |||
108 | /** |
||
109 | * Sets document type |
||
110 | * |
||
111 | * @param string $documentType |
||
112 | * |
||
113 | * @return DocumentGenerator |
||
114 | */ |
||
115 | public function setDocumentType($documentType) |
||
121 | } |
||
122 |