@@ -301,6 +301,10 @@ |
||
| 301 | 301 | return $association; |
| 302 | 302 | } |
| 303 | 303 | |
| 304 | + /** |
|
| 305 | + * @param string $principalEntitySetName |
|
| 306 | + * @param string $dependentEntitySetName |
|
| 307 | + */ |
|
| 304 | 308 | protected function createAssocationSetForAssocation( |
| 305 | 309 | TAssociationType $association, |
| 306 | 310 | $principalEntitySetName, |
@@ -15,8 +15,6 @@ |
||
| 15 | 15 | use AlgoWeb\ODataMetadata\MetadataV3\edm\TEntityPropertyType; |
| 16 | 16 | use AlgoWeb\ODataMetadata\MetadataV3\edm\TEntityTypeType; |
| 17 | 17 | use AlgoWeb\ODataMetadata\MetadataV3\edm\TFunctionImportReturnTypeType; |
| 18 | -use AlgoWeb\ODataMetadata\MetadataV3\edm\TFunctionReturnTypeType; |
|
| 19 | -use AlgoWeb\ODataMetadata\MetadataV3\edm\TFunctionType; |
|
| 20 | 18 | use AlgoWeb\ODataMetadata\MetadataV3\edm\TNavigationPropertyType; |
| 21 | 19 | use AlgoWeb\ODataMetadata\MetadataV3\edm\TPropertyRefType; |
| 22 | 20 | use AlgoWeb\ODataMetadata\MetadataV3\edm\TReferentialConstraintRoleElementType; |
@@ -237,7 +237,7 @@ |
||
| 237 | 237 | if (null != $dependentNavigationProperty) { |
| 238 | 238 | if ($dependentNavigationProperty->getRelationship() != $principalNavigationProperty->getRelationship()) { |
| 239 | 239 | $msg = "If you have both a dependent property and a principal property," |
| 240 | - ." relationship should match"; |
|
| 240 | + ." relationship should match"; |
|
| 241 | 241 | throw new \InvalidArgumentException($msg); |
| 242 | 242 | } |
| 243 | 243 | if ($dependentNavigationProperty->getFromRole() != $principalNavigationProperty->getToRole() |
@@ -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,7 +253,7 @@ 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 | |
@@ -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); |
@@ -36,6 +36,7 @@ |
||
| 36 | 36 | * Gets or sets the inner value |
| 37 | 37 | * |
| 38 | 38 | * @param string ...$value |
| 39 | + * @param string[] $value |
|
| 39 | 40 | * @return string |
| 40 | 41 | */ |
| 41 | 42 | public function value(...$value) |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace AlgoWeb\ODataMetadata\MetadataV3\edm\EntityContainer; |
| 4 | 4 | |
| 5 | 5 | use AlgoWeb\ODataMetadata\IsOK; |
| 6 | -use AlgoWeb\ODataMetadata\IsOKTraits\IsOKToolboxTrait; |
|
| 7 | 6 | use AlgoWeb\ODataMetadata\MetadataV3\edm\EntityContainer\AssociationSetAnonymousType\EndAnonymousType; |
| 8 | 7 | use AlgoWeb\ODataMetadata\MetadataV3\edm\Groups\GEmptyElementExtensibilityTrait; |
| 9 | 8 | use AlgoWeb\ODataMetadata\MetadataV3\edm\IsOKTraits\TQualifiedNameTrait; |
@@ -3,10 +3,8 @@ |
||
| 3 | 3 | namespace AlgoWeb\ODataMetadata\MetadataV3\edm\EntityContainer\AssociationSetAnonymousType; |
| 4 | 4 | |
| 5 | 5 | use AlgoWeb\ODataMetadata\IsOK; |
| 6 | -use AlgoWeb\ODataMetadata\IsOKTraits\IsOKToolboxTrait; |
|
| 7 | 6 | use AlgoWeb\ODataMetadata\MetadataV3\edm\Groups\GEmptyElementExtensibilityTrait; |
| 8 | 7 | use AlgoWeb\ODataMetadata\MetadataV3\edm\IsOKTraits\TSimpleIdentifierTrait; |
| 9 | -use AlgoWeb\ODataMetadata\MetadataV3\edm\TDocumentationType; |
|
| 10 | 8 | |
| 11 | 9 | /** |
| 12 | 10 | * Class representing EndAnonymousType |
@@ -8,6 +8,9 @@ |
||
| 8 | 8 | { |
| 9 | 9 | use xsdRestrictions; |
| 10 | 10 | |
| 11 | + /** |
|
| 12 | + * @param string $string |
|
| 13 | + */ |
|
| 11 | 14 | public function isTPathValid($string) |
| 12 | 15 | { |
| 13 | 16 | // The below pattern represents the allowed identifiers in ECMA specification plus the '/' for path segment |
@@ -8,6 +8,9 @@ |
||
| 8 | 8 | { |
| 9 | 9 | use xsdRestrictions; |
| 10 | 10 | |
| 11 | + /** |
|
| 12 | + * @param string $TNamespaceName |
|
| 13 | + */ |
|
| 11 | 14 | protected function isTNamespaceNameValid($TNamespaceName) |
| 12 | 15 | { |
| 13 | 16 | if (!$this->isNCName($TNamespaceName)) { |
@@ -8,6 +8,9 @@ |
||
| 8 | 8 | { |
| 9 | 9 | use xsdRestrictions; |
| 10 | 10 | |
| 11 | + /** |
|
| 12 | + * @param string $TSimpleIdentifier |
|
| 13 | + */ |
|
| 11 | 14 | protected function isTSimpleIdentifierValid($TSimpleIdentifier) |
| 12 | 15 | { |
| 13 | 16 | if (!$this->isNCName($TSimpleIdentifier)) { |
@@ -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 boolean ...$value |
| 34 | + * @param boolean[] $value |
|
| 34 | 35 | * @return boolean |
| 35 | 36 | */ |
| 36 | 37 | public function value(...$value) |