Passed
Push — master ( 418524...2ac80a )
by Alex
03:43
created

TRuntimeType   A

Complexity

Total Complexity 13

Size/Duplication

Total Lines 99
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 4

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 13
lcom 1
cbo 4
dl 0
loc 99
rs 10
c 1
b 0
f 0

7 Methods

Rating   Name   Duplication   Size   Complexity  
A getStorageModels() 0 4 1
A setStorageModels() 0 5 1
A getConceptualModels() 0 4 1
A setConceptualModels() 0 5 1
A getMappings() 0 4 1
A setMappings() 0 5 1
B isOK() 0 14 7
1
<?php
2
3
namespace AlgoWeb\ODataMetadata\MetadataV3\edmx;
4
5
use AlgoWeb\ODataMetadata\IsOK;
6
7
/**
8
 * Class representing TRuntimeType
9
 *
10
 *
11
 * XSD Type: TRuntime
12
 */
13
class TRuntimeType extends IsOK
14
{
15
16
    /**
17
     * @property \AlgoWeb\ODataMetadata\MetadataV3\edmx\TRuntimeStorageModelsType $storageModels
18
     */
19
    private $storageModels = null;
20
21
    /**
22
     * @property \AlgoWeb\ODataMetadata\MetadataV3\edmx\TRuntimeConceptualModelsType $conceptualModels
23
     */
24
    private $conceptualModels = null;
25
26
    /**
27
     * @property \AlgoWeb\ODataMetadata\MetadataV3\edmx\TRuntimeMappingsType $mappings
28
     */
29
    private $mappings = null;
30
31
    /**
32
     * Gets as storageModels
33
     *
34
     * @return \AlgoWeb\ODataMetadata\MetadataV3\edmx\TRuntimeStorageModelsType
35
     */
36
    public function getStorageModels()
37
    {
38
        return $this->storageModels;
39
    }
40
41
    /**
42
     * Sets a new storageModels
43
     *
44
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edmx\TRuntimeStorageModelsType $storageModels
45
     * @return self
46
     */
47
    public function setStorageModels(TRuntimeStorageModelsType $storageModels)
48
    {
49
        $this->storageModels = $storageModels;
50
        return $this;
51
    }
52
53
    /**
54
     * Gets as conceptualModels
55
     *
56
     * @return \AlgoWeb\ODataMetadata\MetadataV3\edmx\TRuntimeConceptualModelsType
57
     */
58
    public function getConceptualModels()
59
    {
60
        return $this->conceptualModels;
61
    }
62
63
    /**
64
     * Sets a new conceptualModels
65
     *
66
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edmx\TRuntimeConceptualModelsType $conceptualModels
67
     * @return self
68
     */
69
    public function setConceptualModels(TRuntimeConceptualModelsType $conceptualModels)
70
    {
71
        $this->conceptualModels = $conceptualModels;
72
        return $this;
73
    }
74
75
    /**
76
     * Gets as mappings
77
     *
78
     * @return \AlgoWeb\ODataMetadata\MetadataV3\edmx\TRuntimeMappingsType
79
     */
80
    public function getMappings()
81
    {
82
        return $this->mappings;
83
    }
84
85
    /**
86
     * Sets a new mappings
87
     *
88
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edmx\TRuntimeMappingsType $mappings
89
     * @return self
90
     */
91
    public function setMappings(TRuntimeMappingsType $mappings)
92
    {
93
        $this->mappings = $mappings;
94
        return $this;
95
    }
96
97
    public function isOK(&$msg = null)
98
    {
99
        if (null != $this->storageModels && !$this->storageModels->isOK($msg)) {
100
            return false;
101
        }
102
        if (null != $this->conceptualModels && !$this->conceptualModels->isOK($msg)) {
103
            return false;
104
        }
105
        if (null != $this->mappings && !$this->mappings->isOK($msg)) {
106
            return false;
107
        }
108
109
        return true;
110
    }
111
}
112