src/MetadataV3/edm/EntityContainer/AssociationSetAnonymousType/EndAnonymousType.php 1 location
|
@@ 84-99 (lines=16) @@
|
81 |
|
return $this; |
82 |
|
} |
83 |
|
|
84 |
|
public function isOK(&$msg = null) |
85 |
|
{ |
86 |
|
if (!$this->isTSimpleIdentifierValid($this->entitySet)) { |
87 |
|
$msg = "Entity set must be a valid TSimpleIdentifier"; |
88 |
|
return false; |
89 |
|
} |
90 |
|
if (null != $this->role && !$this->isTSimpleIdentifierValid($this->role)) { |
91 |
|
$msg = "Role must be a valid TSimpleIdentifier"; |
92 |
|
return false; |
93 |
|
} |
94 |
|
if (!$this->isExtensibilityElementOK($msg)) { |
95 |
|
return false; |
96 |
|
} |
97 |
|
|
98 |
|
return true; |
99 |
|
} |
100 |
|
} |
101 |
|
|
src/MetadataV3/edm/ssdl/EntityContainer/AssociationSetAnonymousType/EndAnonymousType.php 1 location
|
@@ 77-92 (lines=16) @@
|
74 |
|
return $this; |
75 |
|
} |
76 |
|
|
77 |
|
public function isOK(&$msg = null) |
78 |
|
{ |
79 |
|
if (null != $this->role && !$this->isTSimpleIdentifierValid($this->role)) { |
80 |
|
$msg = "Role must be a valid TSimpleIdentifier"; |
81 |
|
return false; |
82 |
|
} |
83 |
|
if (!$this->isTSimpleIdentifierValid($this->entitySet)) { |
84 |
|
$msg = "Entity set must be a valid TSimpleIdentifier"; |
85 |
|
return false; |
86 |
|
} |
87 |
|
if (!$this->isExtensibilityElementOK($msg)) { |
88 |
|
return false; |
89 |
|
} |
90 |
|
|
91 |
|
return true; |
92 |
|
} |
93 |
|
} |
94 |
|
|
src/MetadataV3/edm/TFunctionImportReturnTypeType.php 1 location
|
@@ 120-134 (lines=15) @@
|
117 |
|
return $this; |
118 |
|
} |
119 |
|
|
120 |
|
public function isOK(&$msg = null) |
121 |
|
{ |
122 |
|
if (!$this->isTSimpleIdentifierValid($this->entitySetAttribute)) { |
123 |
|
$msg = "Entity set attribute must be a valid TSimpleIdentifier"; |
124 |
|
return false; |
125 |
|
}; |
126 |
|
if (!$this->isObjectNullOrType('\AlgoWeb\ODataMetadata\MetadataV3\edm\TOperandType', $this->entitySet)) { |
127 |
|
return false; |
128 |
|
}; |
129 |
|
if (null != $this->type && !$this->isTFunctionImportParameterAndReturnTypeValid($this->type)) { |
130 |
|
$msg = "Type must be a valid TFunctionImportParameterAndReturnType"; |
131 |
|
return false; |
132 |
|
} |
133 |
|
return true; |
134 |
|
} |
135 |
|
} |
136 |
|
|