| @@ 14-52 (lines=39) @@ | ||
| 11 | * |
|
| 12 | * XSD Type: TRuntimeConceptualModels |
|
| 13 | */ |
|
| 14 | class TRuntimeConceptualModelsType extends IsOK |
|
| 15 | { |
|
| 16 | ||
| 17 | /** |
|
| 18 | * @property \AlgoWeb\ODataMetadata\MetadataV3\edm\Schema $schema |
|
| 19 | */ |
|
| 20 | private $schema = null; |
|
| 21 | ||
| 22 | /** |
|
| 23 | * Gets as schema |
|
| 24 | * |
|
| 25 | * @return \AlgoWeb\ODataMetadata\MetadataV3\edm\Schema |
|
| 26 | */ |
|
| 27 | public function getSchema() |
|
| 28 | { |
|
| 29 | return $this->schema; |
|
| 30 | } |
|
| 31 | ||
| 32 | /** |
|
| 33 | * Sets a new schema |
|
| 34 | * |
|
| 35 | * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\Schema $schema |
|
| 36 | * @return self |
|
| 37 | */ |
|
| 38 | public function setSchema(Schema $schema) |
|
| 39 | { |
|
| 40 | $this->schema = $schema; |
|
| 41 | return $this; |
|
| 42 | } |
|
| 43 | ||
| 44 | public function isOK(&$msg = null) |
|
| 45 | { |
|
| 46 | if (null != $this->schema && !$this->schema->isOK($msg)) { |
|
| 47 | return false; |
|
| 48 | } |
|
| 49 | ||
| 50 | return true; |
|
| 51 | } |
|
| 52 | } |
|
| 53 | ||
| @@ 13-51 (lines=39) @@ | ||
| 10 | * |
|
| 11 | * XSD Type: TRuntimeStorageModels |
|
| 12 | */ |
|
| 13 | class TRuntimeStorageModelsType extends IsOK |
|
| 14 | { |
|
| 15 | ||
| 16 | /** |
|
| 17 | * @property \AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\Schema $schema |
|
| 18 | */ |
|
| 19 | private $schema = null; |
|
| 20 | ||
| 21 | /** |
|
| 22 | * Gets as schema |
|
| 23 | * |
|
| 24 | * @return \AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\Schema |
|
| 25 | */ |
|
| 26 | public function getSchema() |
|
| 27 | { |
|
| 28 | return $this->schema; |
|
| 29 | } |
|
| 30 | ||
| 31 | /** |
|
| 32 | * Sets a new schema |
|
| 33 | * |
|
| 34 | * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\Schema $schema |
|
| 35 | * @return self |
|
| 36 | */ |
|
| 37 | public function setSchema(\AlgoWeb\ODataMetadata\MetadataV3\edm\Ssdl\Schema $schema) |
|
| 38 | { |
|
| 39 | $this->schema = $schema; |
|
| 40 | return $this; |
|
| 41 | } |
|
| 42 | ||
| 43 | public function isOK(&$msg = null) |
|
| 44 | { |
|
| 45 | if (null != $this->schema && !$this->schema->isOK($msg)) { |
|
| 46 | return false; |
|
| 47 | } |
|
| 48 | ||
| 49 | return true; |
|
| 50 | } |
|
| 51 | } |
|
| 52 | ||