@@ -37,6 +37,7 @@ |
||
| 37 | 37 | * Gets or sets the inner value |
| 38 | 38 | * |
| 39 | 39 | * @param string ...$value |
| 40 | + * @param string[] $value |
|
| 40 | 41 | * @return string |
| 41 | 42 | */ |
| 42 | 43 | public function value(...$value) |
@@ -37,6 +37,7 @@ |
||
| 37 | 37 | * Gets or sets the inner value |
| 38 | 38 | * |
| 39 | 39 | * @param string ...$value |
| 40 | + * @param string[] $value |
|
| 40 | 41 | * @return string |
| 41 | 42 | */ |
| 42 | 43 | public function value(...$value) |
@@ -37,6 +37,7 @@ |
||
| 37 | 37 | * Gets or sets the inner value |
| 38 | 38 | * |
| 39 | 39 | * @param string ...$value |
| 40 | + * @param string[] $value |
|
| 40 | 41 | * @return string |
| 41 | 42 | */ |
| 42 | 43 | public function value(...$value) |
@@ -32,6 +32,7 @@ |
||
| 32 | 32 | * Gets or sets the inner value |
| 33 | 33 | * |
| 34 | 34 | * @param \DateTime ...$value |
| 35 | + * @param \DateTime[] $value |
|
| 35 | 36 | * @return \DateTime |
| 36 | 37 | */ |
| 37 | 38 | public function value(...$value) |
@@ -22,10 +22,10 @@ |
||
| 22 | 22 | private $type = null; |
| 23 | 23 | |
| 24 | 24 | /** |
| 25 | - * Gets as type |
|
| 26 | - * |
|
| 27 | - * @return string |
|
| 28 | - */ |
|
| 25 | + * Gets as type |
|
| 26 | + * |
|
| 27 | + * @return string |
|
| 28 | + */ |
|
| 29 | 29 | public function getType() |
| 30 | 30 | { |
| 31 | 31 | return $this->type; |
@@ -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); |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | /** |
| 94 | 94 | * isset returnType |
| 95 | 95 | * |
| 96 | - * @param scalar $index |
|
| 96 | + * @param integer $index |
|
| 97 | 97 | * @return boolean |
| 98 | 98 | */ |
| 99 | 99 | public function issetReturnType($index) |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | /** |
| 105 | 105 | * unset returnType |
| 106 | 106 | * |
| 107 | - * @param scalar $index |
|
| 107 | + * @param integer $index |
|
| 108 | 108 | * @return void |
| 109 | 109 | */ |
| 110 | 110 | public function unsetReturnType($index) |