@@ -76,7 +76,7 @@ |
||
| 76 | 76 | return false; |
| 77 | 77 | } |
| 78 | 78 | if (null != $this->baseType && !$this->isTQualifiedNameValid($this->baseType)) { |
| 79 | - $msg = "Base type must be a valid TQualifiedName: " . get_class($this); |
|
| 79 | + $msg = "Base type must be a valid TQualifiedName: ".get_class($this); |
|
| 80 | 80 | return false; |
| 81 | 81 | } |
| 82 | 82 | return true; |
@@ -737,29 +737,29 @@ discard block |
||
| 737 | 737 | $counter += isset($this->$name) ? 1 : 0; |
| 738 | 738 | } |
| 739 | 739 | if (-1 < $this->gExpressionMinimum && $counter < $this->gExpressionMinimum) { |
| 740 | - $msg = $counter . " fields not null. Need minimum of ".$this->gExpressionMinimum. ": " |
|
| 740 | + $msg = $counter." fields not null. Need minimum of ".$this->gExpressionMinimum.": " |
|
| 741 | 741 | . get_class($this); |
| 742 | 742 | return false; |
| 743 | 743 | } |
| 744 | 744 | if (-1 < $this->gExpressionMaximum && $counter > $this->gExpressionMaximum) { |
| 745 | - $msg = $counter . " fields not null. Need maximum of ".$this->gExpressionMaximum. ": " |
|
| 745 | + $msg = $counter." fields not null. Need maximum of ".$this->gExpressionMaximum.": " |
|
| 746 | 746 | . get_class($this); |
| 747 | 747 | return false; |
| 748 | 748 | } |
| 749 | 749 | } |
| 750 | 750 | |
| 751 | 751 | if (null != $this->guid && !$this->isTGuidLiteralValid($this->guid)) { |
| 752 | - $msg = "Guid must be a valid TGuidLiteral: " . get_class($this); |
|
| 752 | + $msg = "Guid must be a valid TGuidLiteral: ".get_class($this); |
|
| 753 | 753 | return false; |
| 754 | 754 | } |
| 755 | 755 | |
| 756 | 756 | if (null != $this->enum && !$this->isTQualifiedNameValid($this->enum)) { |
| 757 | - $msg = "Enum must be a valid TQualifiedName: " . get_class($this); |
|
| 757 | + $msg = "Enum must be a valid TQualifiedName: ".get_class($this); |
|
| 758 | 758 | return false; |
| 759 | 759 | } |
| 760 | 760 | |
| 761 | 761 | if (null != $this->path && !$this->isTQualifiedNameValid($this->path)) { |
| 762 | - $msg = "Path must be a valid TQualifiedName: " . get_class($this); |
|
| 762 | + $msg = "Path must be a valid TQualifiedName: ".get_class($this); |
|
| 763 | 763 | return false; |
| 764 | 764 | } |
| 765 | 765 | |
@@ -775,7 +775,7 @@ discard block |
||
| 775 | 775 | return false; |
| 776 | 776 | } |
| 777 | 777 | if (!$this->isObjectNullOrType($type, $this->$key)) { |
| 778 | - $msg = 'Type mismatch - should be ' .$type. ", is ".get_class($this->$key). ": " . get_class($this); |
|
| 778 | + $msg = 'Type mismatch - should be '.$type.", is ".get_class($this->$key).": ".get_class($this); |
|
| 779 | 779 | return false; |
| 780 | 780 | } |
| 781 | 781 | } |
@@ -301,39 +301,39 @@ |
||
| 301 | 301 | public function isTFacetAttributesTraitValid(&$msg = null) |
| 302 | 302 | { |
| 303 | 303 | if ($this->nullable !== boolval($this->nullable)) { |
| 304 | - $msg = "Nullable must be boolean: " . get_class($this); |
|
| 304 | + $msg = "Nullable must be boolean: ".get_class($this); |
|
| 305 | 305 | return false; |
| 306 | 306 | } |
| 307 | 307 | if (null != $this->defaultValue && !is_string($this->defaultValue)) { |
| 308 | - $msg = "Default value must be a string: " . get_class($this); |
|
| 308 | + $msg = "Default value must be a string: ".get_class($this); |
|
| 309 | 309 | return false; |
| 310 | 310 | } |
| 311 | 311 | if (null != $this->collation && !$this->isTCollationFacetValid($this->collation)) { |
| 312 | - $msg = "Collation must be a valid TCollationFacet: " . get_class($this); |
|
| 312 | + $msg = "Collation must be a valid TCollationFacet: ".get_class($this); |
|
| 313 | 313 | return false; |
| 314 | 314 | } |
| 315 | 315 | if (null != $this->maxLength && !$this->isTMaxLengthFacetValid($this->maxLength)) { |
| 316 | - $msg = "Max length must be a valid TMaxLengthFacet: " . get_class($this); |
|
| 316 | + $msg = "Max length must be a valid TMaxLengthFacet: ".get_class($this); |
|
| 317 | 317 | return false; |
| 318 | 318 | } |
| 319 | 319 | if (null != $this->fixedLength && !$this->isTIsFixedLengthFacetTraitValid($this->fixedLength)) { |
| 320 | - $msg = "Fixed length must be a valid TFixedLengthFacet: " . get_class($this); |
|
| 320 | + $msg = "Fixed length must be a valid TFixedLengthFacet: ".get_class($this); |
|
| 321 | 321 | return false; |
| 322 | 322 | } |
| 323 | 323 | if (null != $this->precision && !$this->isTPrecisionFacetValid($this->precision)) { |
| 324 | - $msg = "Precision must be a valid TPrecisionFacet: " . get_class($this); |
|
| 324 | + $msg = "Precision must be a valid TPrecisionFacet: ".get_class($this); |
|
| 325 | 325 | return false; |
| 326 | 326 | } |
| 327 | 327 | if (null != $this->scale && !$this->isTScaleFacetValid($this->scale)) { |
| 328 | - $msg = "Scale must be a valid TScaleFacet: " . get_class($this); |
|
| 328 | + $msg = "Scale must be a valid TScaleFacet: ".get_class($this); |
|
| 329 | 329 | return false; |
| 330 | 330 | } |
| 331 | 331 | if (null != $this->sRID && !$this->isTSridFacetValid($this->sRID)) { |
| 332 | - $msg = "SRID must be a valid TSridFacet: " . get_class($this); |
|
| 332 | + $msg = "SRID must be a valid TSridFacet: ".get_class($this); |
|
| 333 | 333 | return false; |
| 334 | 334 | } |
| 335 | 335 | if (null != $this->unicode && !$this->isTIsUnicodeFacetTraitValid($this->unicode)) { |
| 336 | - $msg = "Unicode must be a valid TUnicodeFacet: " . get_class($this); |
|
| 336 | + $msg = "Unicode must be a valid TUnicodeFacet: ".get_class($this); |
|
| 337 | 337 | return false; |
| 338 | 338 | } |
| 339 | 339 | |
@@ -476,59 +476,59 @@ |
||
| 476 | 476 | public function isTCommonPropertyAttributesValid(&$msg = null) |
| 477 | 477 | { |
| 478 | 478 | if (!$this->isTSimpleIdentifierValid($this->name)) { |
| 479 | - $msg = "Name must be a valid TSimpleIdentifier: " . get_class($this); |
|
| 479 | + $msg = "Name must be a valid TSimpleIdentifier: ".get_class($this); |
|
| 480 | 480 | return false; |
| 481 | 481 | } |
| 482 | 482 | if (!$this->isTPropertyTypeValid($this->type)) { |
| 483 | - $msg = "Type must be a valid TPropertyType: " . get_class($this); |
|
| 483 | + $msg = "Type must be a valid TPropertyType: ".get_class($this); |
|
| 484 | 484 | return false; |
| 485 | 485 | } |
| 486 | 486 | if (null != $this->nullable && $this->nullable !== boolval($this->nullable)) { |
| 487 | - $msg = "Nullable must be boolean: " . get_class($this); |
|
| 487 | + $msg = "Nullable must be boolean: ".get_class($this); |
|
| 488 | 488 | return false; |
| 489 | 489 | } |
| 490 | 490 | if (null != $this->defaultValue && !is_string($this->defaultValue)) { |
| 491 | - $msg = "Default value must be a string: " . get_class($this); |
|
| 491 | + $msg = "Default value must be a string: ".get_class($this); |
|
| 492 | 492 | return false; |
| 493 | 493 | } |
| 494 | 494 | if (null != $this->maxLength && !$this->isTMaxLengthFacetValid($this->maxLength)) { |
| 495 | - $msg = "Max length must be a valid TMaxLengthFacet: " . get_class($this); |
|
| 495 | + $msg = "Max length must be a valid TMaxLengthFacet: ".get_class($this); |
|
| 496 | 496 | return false; |
| 497 | 497 | } |
| 498 | 498 | if (null != $this->fixedLength && !$this->isTIsFixedLengthFacetTraitValid($this->fixedLength)) { |
| 499 | - $msg = "Max length must be a valid TFixedLengthFacet: " . get_class($this); |
|
| 499 | + $msg = "Max length must be a valid TFixedLengthFacet: ".get_class($this); |
|
| 500 | 500 | return false; |
| 501 | 501 | } |
| 502 | 502 | if (null != $this->precision && !$this->isTPrecisionFacetValid($this->precision)) { |
| 503 | - $msg = "Precision must be a valid TPrecisionFacet: " . get_class($this); |
|
| 503 | + $msg = "Precision must be a valid TPrecisionFacet: ".get_class($this); |
|
| 504 | 504 | return false; |
| 505 | 505 | } |
| 506 | 506 | if (null != $this->scale && !$this->isTScaleFacetValid($this->scale)) { |
| 507 | - $msg = "Scale must be a valid TScaleFacet: " . get_class($this); |
|
| 507 | + $msg = "Scale must be a valid TScaleFacet: ".get_class($this); |
|
| 508 | 508 | return false; |
| 509 | 509 | } |
| 510 | 510 | if (null != $this->unicode && !$this->isTIsUnicodeFacetTraitValid($this->unicode)) { |
| 511 | - $msg = "Unicode must be a valid TUnicodeFacet: " . get_class($this); |
|
| 511 | + $msg = "Unicode must be a valid TUnicodeFacet: ".get_class($this); |
|
| 512 | 512 | return false; |
| 513 | 513 | } |
| 514 | 514 | if (null != $this->collation && !$this->isTCollationFacetValid($this->collation)) { |
| 515 | - $msg = "Collation must be a valid TCollationFacet: " . get_class($this); |
|
| 515 | + $msg = "Collation must be a valid TCollationFacet: ".get_class($this); |
|
| 516 | 516 | return false; |
| 517 | 517 | } |
| 518 | 518 | if (null != $this->sRID && !$this->isTSridFacetValid($this->sRID)) { |
| 519 | - $msg = "SRID must be a valid TSridFacet: " . get_class($this); |
|
| 519 | + $msg = "SRID must be a valid TSridFacet: ".get_class($this); |
|
| 520 | 520 | return false; |
| 521 | 521 | } |
| 522 | 522 | if (null != $this->concurrencyMode && !$this->isTConcurrencyModeValid($this->concurrencyMode)) { |
| 523 | - $msg = "ConcurrencyMode must be a valid TConcurrencyMode: " . get_class($this); |
|
| 523 | + $msg = "ConcurrencyMode must be a valid TConcurrencyMode: ".get_class($this); |
|
| 524 | 524 | return false; |
| 525 | 525 | } |
| 526 | 526 | if (null != $this->setterAccess && !$this->isTAccessOk($this->setterAccess)) { |
| 527 | - $msg = "Setter access must be a valid TAccess: " . get_class($this); |
|
| 527 | + $msg = "Setter access must be a valid TAccess: ".get_class($this); |
|
| 528 | 528 | return false; |
| 529 | 529 | } |
| 530 | 530 | if (null != $this->getterAccess && !$this->isTAccessOk($this->getterAccess)) { |
| 531 | - $msg = "Getter access must be a valid TAccess: " . get_class($this); |
|
| 531 | + $msg = "Getter access must be a valid TAccess: ".get_class($this); |
|
| 532 | 532 | return false; |
| 533 | 533 | } |
| 534 | 534 | |
@@ -109,15 +109,15 @@ |
||
| 109 | 109 | public function isTEntitySetAttributesOK(&$msg = null) |
| 110 | 110 | { |
| 111 | 111 | if (null != $this->name && !$this->isTSimpleIdentifierValid($this->name)) { |
| 112 | - $msg = "Name must be a valid TSimpleIdentifier: " . get_class($this); |
|
| 112 | + $msg = "Name must be a valid TSimpleIdentifier: ".get_class($this); |
|
| 113 | 113 | return false; |
| 114 | 114 | } |
| 115 | 115 | if (null != $this->entityType && !$this->isTQualifiedNameValid($this->entityType)) { |
| 116 | - $msg = "Entity type must be a valid TQualifiedName: " . get_class($this); |
|
| 116 | + $msg = "Entity type must be a valid TQualifiedName: ".get_class($this); |
|
| 117 | 117 | return false; |
| 118 | 118 | } |
| 119 | 119 | if (null != $this->getterAccess && !$this->isTAccessOk($this->getterAccess)) { |
| 120 | - $msg = "Getter access must be a valid TAccess: " . get_class($this); |
|
| 120 | + $msg = "Getter access must be a valid TAccess: ".get_class($this); |
|
| 121 | 121 | return false; |
| 122 | 122 | } |
| 123 | 123 | |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | return true; |
| 76 | 76 | } |
| 77 | 77 | if (!$object instanceof $instanceOf) { |
| 78 | - $msg = "Supplied object not an instance of ".$instanceOf. ": " . get_class($this); |
|
| 78 | + $msg = "Supplied object not an instance of ".$instanceOf.": ".get_class($this); |
|
| 79 | 79 | return false; |
| 80 | 80 | } |
| 81 | 81 | return $object->isOK($msg); |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | { |
| 86 | 86 | $result = $this->isValidArray($arr, $instanceOf, $minCount, $maxCount); |
| 87 | 87 | if (!$result) { |
| 88 | - $msg = "Supplied array not a valid array: " . get_class($this); |
|
| 88 | + $msg = "Supplied array not a valid array: ".get_class($this); |
|
| 89 | 89 | return false; |
| 90 | 90 | } |
| 91 | 91 | |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | } |
| 121 | 121 | foreach ($arr as $item) { |
| 122 | 122 | if (!($item instanceof IsOK)) { |
| 123 | - $msg = "Child item is not an instance of IsOK: " . get_class($this); |
|
| 123 | + $msg = "Child item is not an instance of IsOK: ".get_class($this); |
|
| 124 | 124 | return false; |
| 125 | 125 | } |
| 126 | 126 | if (!$item->isOK($msg)) { |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | "GeometricMultiPoint", "GeometricMultiLineString", "GeometricMultiPolygon", "GeometryCollection", |
| 14 | 14 | "Guid", "Int16", "Int32", "Int64", "String", "SByte"]; |
| 15 | 15 | if (!is_string($string)) { |
| 16 | - $msg = "Input must be a string: ". get_class($this); |
|
| 16 | + $msg = "Input must be a string: ".get_class($this); |
|
| 17 | 17 | throw new \InvalidArgumentException($msg); |
| 18 | 18 | } |
| 19 | 19 | if (!in_array($string, $validType)) { |
@@ -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 |