Passed
Push — master ( 2ab1b1...9d1091 )
by Alex
03:50
created

TEntityTypeShapeType::isOK()   A

Complexity

Conditions 3
Paths 2

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 7
rs 9.4285
c 1
b 0
f 0
cc 3
eloc 4
nc 2
nop 0
1
<?php
2
3
namespace AlgoWeb\ODataMetadata\MetadataV3\edmx;
4
5
/**
6
 * Class representing TEntityTypeShapeType
7
 *
8
 *
9
 * XSD Type: TEntityTypeShape
10
 */
11
class TEntityTypeShapeType
12
{
13
14
    /**
15
     * @property string $entityType
16
     */
17
    private $entityType = null;
18
19
    /**
20
     * @property float $pointX
21
     */
22
    private $pointX = null;
23
24
    /**
25
     * @property float $pointY
26
     */
27
    private $pointY = null;
28
29
    /**
30
     * @property float $width
31
     */
32
    private $width = null;
33
34
    /**
35
     * @property float $height
36
     */
37
    private $height = null;
38
39
    /**
40
     * @property boolean $isExpanded
41
     */
42
    private $isExpanded = null;
43
44
    /**
45
     * @property string $fillColor
46
     */
47
    private $fillColor = null;
48
49
    /**
50
     * Gets as entityType
51
     *
52
     * @return string
53
     */
54
    public function getEntityType()
55
    {
56
        return $this->entityType;
57
    }
58
59
    /**
60
     * Sets a new entityType
61
     *
62
     * @param string $entityType
63
     * @return self
64
     */
65
    public function setEntityType($entityType)
66
    {
67
        $this->entityType = $entityType;
68
        return $this;
69
    }
70
71
    /**
72
     * Gets as pointX
73
     *
74
     * @return float
75
     */
76
    public function getPointX()
77
    {
78
        return $this->pointX;
79
    }
80
81
    /**
82
     * Sets a new pointX
83
     *
84
     * @param float $pointX
85
     * @return self
86
     */
87
    public function setPointX($pointX)
88
    {
89
        $this->pointX = $pointX;
90
        return $this;
91
    }
92
93
    /**
94
     * Gets as pointY
95
     *
96
     * @return float
97
     */
98
    public function getPointY()
99
    {
100
        return $this->pointY;
101
    }
102
103
    /**
104
     * Sets a new pointY
105
     *
106
     * @param float $pointY
107
     * @return self
108
     */
109
    public function setPointY($pointY)
110
    {
111
        $this->pointY = $pointY;
112
        return $this;
113
    }
114
115
    /**
116
     * Gets as width
117
     *
118
     * @return float
119
     */
120
    public function getWidth()
121
    {
122
        return $this->width;
123
    }
124
125
    /**
126
     * Sets a new width
127
     *
128
     * @param float $width
129
     * @return self
130
     */
131
    public function setWidth($width)
132
    {
133
        $this->width = $width;
134
        return $this;
135
    }
136
137
    /**
138
     * Gets as height
139
     *
140
     * @return float
141
     */
142
    public function getHeight()
143
    {
144
        return $this->height;
145
    }
146
147
    /**
148
     * Sets a new height
149
     *
150
     * @param float $height
151
     * @return self
152
     */
153
    public function setHeight($height)
154
    {
155
        $this->height = $height;
156
        return $this;
157
    }
158
159
    /**
160
     * Gets as isExpanded
161
     *
162
     * @return boolean
163
     */
164
    public function getIsExpanded()
165
    {
166
        return $this->isExpanded;
167
    }
168
169
    /**
170
     * Sets a new isExpanded
171
     *
172
     * @param boolean $isExpanded
173
     * @return self
174
     */
175
    public function setIsExpanded($isExpanded)
176
    {
177
        $this->isExpanded = $isExpanded;
178
        return $this;
179
    }
180
181
    /**
182
     * Gets as fillColor
183
     *
184
     * @return string
185
     */
186
    public function getFillColor()
187
    {
188
        return $this->fillColor;
189
    }
190
191
    /**
192
     * Sets a new fillColor
193
     *
194
     * @param string $fillColor
195
     * @return self
196
     */
197
    public function setFillColor($fillColor)
198
    {
199
        $this->fillColor = $fillColor;
200
        return $this;
201
    }
202
203
    /**
204
     * @return bool
205
     */
206
    public function isOK()
207
    {
208
        if (null == $this->entityType || "" == $this->entityType) {
209
            return false;
210
        }
211
        return true;
212
    }
213
}
214