@@ 100-110 (lines=11) @@ | ||
97 | * |
|
98 | * @return string |
|
99 | */ |
|
100 | private function generateDocumentProperties(array $metadata) |
|
101 | { |
|
102 | $lines = []; |
|
103 | ||
104 | foreach ($metadata['properties'] as $property) { |
|
105 | $lines[] = $this->generatePropertyDocBlock($property); |
|
106 | $lines[] = $this->spaces . 'private $' . $property['field_name'] . ";\n"; |
|
107 | } |
|
108 | ||
109 | return implode("\n", $lines); |
|
110 | } |
|
111 | ||
112 | /** |
|
113 | * Generates document methods |
|
@@ 119-129 (lines=11) @@ | ||
116 | * |
|
117 | * @return string |
|
118 | */ |
|
119 | private function generateDocumentMethods(array $metadata) |
|
120 | { |
|
121 | $lines = []; |
|
122 | ||
123 | foreach ($metadata['properties'] as $property) { |
|
124 | $lines[] = $this->generateDocumentMethod($property, 'set') . "\n"; |
|
125 | $lines[] = $this->generateDocumentMethod($property, 'get') . "\n"; |
|
126 | } |
|
127 | ||
128 | return implode("\n", $lines); |
|
129 | } |
|
130 | ||
131 | /** |
|
132 | * Generates document method |