@@ -31,6 +31,7 @@ |
||
31 | 31 | * Gets or sets the inner value |
32 | 32 | * |
33 | 33 | * @param integer ...$value |
34 | + * @param integer[] $value |
|
34 | 35 | * @return integer |
35 | 36 | */ |
36 | 37 | public function value(...$value) |
@@ -31,6 +31,7 @@ |
||
31 | 31 | * Gets or sets the inner value |
32 | 32 | * |
33 | 33 | * @param string ...$value |
34 | + * @param string[] $value |
|
34 | 35 | * @return string |
35 | 36 | */ |
36 | 37 | public function value(...$value) |
@@ -31,6 +31,7 @@ |
||
31 | 31 | * Gets or sets the inner value |
32 | 32 | * |
33 | 33 | * @param string ...$value |
34 | + * @param string[] $value |
|
34 | 35 | * @return string |
35 | 36 | */ |
36 | 37 | public function value(...$value) |
@@ -31,6 +31,7 @@ |
||
31 | 31 | * Gets or sets the inner value |
32 | 32 | * |
33 | 33 | * @param string ...$value |
34 | + * @param string[] $value |
|
34 | 35 | * @return string |
35 | 36 | */ |
36 | 37 | public function value(...$value) |
@@ -31,6 +31,7 @@ |
||
31 | 31 | * Gets or sets the inner value |
32 | 32 | * |
33 | 33 | * @param \DateTime ...$value |
34 | + * @param \DateTime[] $value |
|
34 | 35 | * @return \DateTime |
35 | 36 | */ |
36 | 37 | public function value(...$value) |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | $entitySet = new EntitySetAnonymousType(); |
64 | 64 | $entitySet->setName(Str::plural($NewEntity->getName())); |
65 | 65 | $namespace = $this->getNamespace(); |
66 | - $entityTypeName = $namespace . $NewEntity->getName(); |
|
66 | + $entityTypeName = $namespace.$NewEntity->getName(); |
|
67 | 67 | $entitySet->setEntityType($entityTypeName); |
68 | 68 | $entitySet->setGetterAccess($accessType); |
69 | 69 | |
@@ -167,17 +167,17 @@ discard block |
||
167 | 167 | ) { |
168 | 168 | $principalEntitySetName = Str::plural($principalType->getName()); |
169 | 169 | $dependentEntitySetName = Str::plural($dependentType->getName()); |
170 | - $relationName = $principalType->getName() . "_" . $principalProperty . "_" |
|
171 | - . $dependentType->getName() . "_" . $dependentProperty; |
|
170 | + $relationName = $principalType->getName()."_".$principalProperty."_" |
|
171 | + . $dependentType->getName()."_".$dependentProperty; |
|
172 | 172 | $relationName = trim($relationName, "_"); |
173 | 173 | |
174 | 174 | $namespace = $this->getNamespace(); |
175 | - $relationFQName = $namespace . $relationName; |
|
175 | + $relationFQName = $namespace.$relationName; |
|
176 | 176 | |
177 | 177 | $principalNavigationProperty = new TNavigationPropertyType(); |
178 | 178 | $principalNavigationProperty->setName($principalProperty); |
179 | - $principalNavigationProperty->setToRole(trim($dependentEntitySetName . "_" . $dependentProperty, "_")); |
|
180 | - $principalNavigationProperty->setFromRole($principalEntitySetName . "_" . $principalProperty); |
|
179 | + $principalNavigationProperty->setToRole(trim($dependentEntitySetName."_".$dependentProperty, "_")); |
|
180 | + $principalNavigationProperty->setFromRole($principalEntitySetName."_".$principalProperty); |
|
181 | 181 | $principalNavigationProperty->setRelationship($relationFQName); |
182 | 182 | $principalNavigationProperty->setGetterAccess($principalGetterAccess); |
183 | 183 | $principalNavigationProperty->setSetterAccess($principalSetterAccess); |
@@ -187,8 +187,8 @@ discard block |
||
187 | 187 | if (!empty($dependentProperty)) { |
188 | 188 | $dependentNavigationProperty = new TNavigationPropertyType(); |
189 | 189 | $dependentNavigationProperty->setName($dependentProperty); |
190 | - $dependentNavigationProperty->setToRole($principalEntitySetName . "_" . $principalProperty); |
|
191 | - $dependentNavigationProperty->setFromRole($dependentEntitySetName . "_" . $dependentProperty); |
|
190 | + $dependentNavigationProperty->setToRole($principalEntitySetName."_".$principalProperty); |
|
191 | + $dependentNavigationProperty->setFromRole($dependentEntitySetName."_".$dependentProperty); |
|
192 | 192 | $dependentNavigationProperty->setRelationship($relationFQName); |
193 | 193 | $dependentNavigationProperty->setGetterAccess($dependentGetterAccess); |
194 | 194 | $dependentNavigationProperty->setSetterAccess($dependentSetterAccess); |
@@ -232,7 +232,7 @@ discard block |
||
232 | 232 | array $principalConstraintProperty = null, |
233 | 233 | array $dependentConstraintProperty = null |
234 | 234 | ) { |
235 | - $multCombo = [ '*' => ['*', '1'], '0..1' => ['1'], '1' => ['*', '0..1']]; |
|
235 | + $multCombo = ['*' => ['*', '1'], '0..1' => ['1'], '1' => ['*', '0..1']]; |
|
236 | 236 | $multKeys = array_keys($multCombo); |
237 | 237 | if (null != $dependentNavigationProperty) { |
238 | 238 | if ($dependentNavigationProperty->getRelationship() != $principalNavigationProperty->getRelationship()) { |
@@ -253,13 +253,13 @@ discard block |
||
253 | 253 | } |
254 | 254 | if (!in_array($dependentMultiplicity, $multCombo[$principalMultiplicity])) { |
255 | 255 | throw new \InvalidArgumentException( |
256 | - "Invalid multiplicity combination - ". $principalMultiplicity . ' ' . $dependentMultiplicity |
|
256 | + "Invalid multiplicity combination - ".$principalMultiplicity.' '.$dependentMultiplicity |
|
257 | 257 | ); |
258 | 258 | } |
259 | 259 | |
260 | 260 | $namespace = $this->getNamespace(); |
261 | - $principalTypeFQName = $namespace . $principalType->getName(); |
|
262 | - $dependentTypeFQName = $namespace . $dependentType->getName(); |
|
261 | + $principalTypeFQName = $namespace.$principalType->getName(); |
|
262 | + $dependentTypeFQName = $namespace.$dependentType->getName(); |
|
263 | 263 | $association = new TAssociationType(); |
264 | 264 | $relationship = $principalNavigationProperty->getRelationship(); |
265 | 265 | if (false !== strpos($relationship, '.')) { |
@@ -310,7 +310,7 @@ discard block |
||
310 | 310 | $name = $association->getName(); |
311 | 311 | $as->setName($name); |
312 | 312 | $namespace = $this->getNamespace(); |
313 | - $associationSetName = $namespace . $association->getName(); |
|
313 | + $associationSetName = $namespace.$association->getName(); |
|
314 | 314 | $as->setAssociation($associationSetName); |
315 | 315 | $end1 = new EndAnonymousType(); |
316 | 316 | $end1->setRole($association->getEnd()[0]->getRole()); |
@@ -370,7 +370,7 @@ discard block |
||
370 | 370 | |
371 | 371 | private function initSerialiser() |
372 | 372 | { |
373 | - $ymlDir = __DIR__ . DIRECTORY_SEPARATOR . "MetadataV3" . DIRECTORY_SEPARATOR . "JMSmetadata"; |
|
373 | + $ymlDir = __DIR__.DIRECTORY_SEPARATOR."MetadataV3".DIRECTORY_SEPARATOR."JMSmetadata"; |
|
374 | 374 | $this->serializer = |
375 | 375 | SerializerBuilder::create() |
376 | 376 | ->addMetadataDir($ymlDir) |
@@ -440,7 +440,7 @@ discard block |
||
440 | 440 | * @param $longDescription |
441 | 441 | * @param $NewEntity |
442 | 442 | */ |
443 | - private function addDocumentation($summary, $longDescription, IsOK &$NewEntity) |
|
443 | + private function addDocumentation($summary, $longDescription, IsOK & $NewEntity) |
|
444 | 444 | { |
445 | 445 | if (null != $summary && null != $longDescription) { |
446 | 446 | $documentation = $this->generateDocumentation($summary, $longDescription); |