| @@ 161-169 (lines=9) @@ | ||
| 158 | * @return self |
|
| 159 | * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\TEntityPropertyType $property |
|
| 160 | */ |
|
| 161 | public function addToProperty(TEntityPropertyType $property) |
|
| 162 | { |
|
| 163 | $msg = null; |
|
| 164 | if (!$property->isOK($msg)) { |
|
| 165 | throw new \InvalidArgumentException($msg); |
|
| 166 | } |
|
| 167 | $this->property[] = $property; |
|
| 168 | return $this; |
|
| 169 | } |
|
| 170 | ||
| 171 | /** |
|
| 172 | * isset property |
|
| @@ 209-221 (lines=13) @@ | ||
| 206 | * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\TEntityPropertyType[] $property |
|
| 207 | * @return self |
|
| 208 | */ |
|
| 209 | public function setProperty(array $property) |
|
| 210 | { |
|
| 211 | $msg = null; |
|
| 212 | if (!$this->isValidArrayOK( |
|
| 213 | $property, |
|
| 214 | '\AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\TEntityPropertyType', |
|
| 215 | $msg |
|
| 216 | )) { |
|
| 217 | throw new \InvalidArgumentException($msg); |
|
| 218 | } |
|
| 219 | $this->property = $property; |
|
| 220 | return $this; |
|
| 221 | } |
|
| 222 | ||
| 223 | public function isOK(&$msg = null) |
|
| 224 | { |
|
| @@ 102-110 (lines=9) @@ | ||
| 99 | * @return self |
|
| 100 | * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TComplexTypePropertyType $property |
|
| 101 | */ |
|
| 102 | public function addToProperty(TComplexTypePropertyType $property) |
|
| 103 | { |
|
| 104 | $msg = null; |
|
| 105 | if (!$property->isOK($msg)) { |
|
| 106 | throw new \InvalidArgumentException($msg); |
|
| 107 | } |
|
| 108 | $this->property[] = $property; |
|
| 109 | return $this; |
|
| 110 | } |
|
| 111 | ||
| 112 | /** |
|
| 113 | * isset property |
|
| @@ 205-213 (lines=9) @@ | ||
| 202 | * @return self |
|
| 203 | * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TEntityPropertyType $property |
|
| 204 | */ |
|
| 205 | public function addToProperty(TEntityPropertyType $property) |
|
| 206 | { |
|
| 207 | $msg = null; |
|
| 208 | if (!$property->isOK($msg)) { |
|
| 209 | throw new \InvalidArgumentException($msg); |
|
| 210 | } |
|
| 211 | $this->property[] = $property; |
|
| 212 | return $this; |
|
| 213 | } |
|
| 214 | ||
| 215 | /** |
|
| 216 | * isset property |
|