@@ -389,7 +389,7 @@ |
||
389 | 389 | { |
390 | 390 | return [ |
391 | 391 | new AttributeContainer('Name', $this->getName()), |
392 | - new AttributeContainer('EntitySet', $this->getEntitySet(),true), |
|
392 | + new AttributeContainer('EntitySet', $this->getEntitySet(), true), |
|
393 | 393 | new AttributeContainer('EntitySetPath', $this->getEntitySetPath(), true), |
394 | 394 | new AttributeContainer('ReturnType', $this->getReturnType()->getType(), true, OdataVersions::TWO(), [OdataVersions::THREE()]), |
395 | 395 | ]; |
@@ -28,7 +28,6 @@ |
||
28 | 28 | * by the related EntitySet. An End element can contain a maximum of one Documentation element. |
29 | 29 | * - End can contain any number of AnnotationElement elements. |
30 | 30 | * - The child elements of End are to appear in this sequence: Documentation, AnnotationElement. |
31 | - |
|
32 | 31 | * @link https://www.odata.org/documentation/odata-version-3-0/common-schema-definition-language-csdl/#csdl12.3.1 |
33 | 32 | */ |
34 | 33 | class End extends EdmBase |
@@ -35,8 +35,6 @@ |
||
35 | 35 | { |
36 | 36 | /** |
37 | 37 | * End can contain a maximum of one Documentation element. |
38 | - |
|
39 | - |
|
40 | 38 | */ |
41 | 39 | use HasDocumentation; |
42 | 40 | /** |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | /** |
83 | 83 | * @var PropertyRef $propertyRef |
84 | 84 | */ |
85 | - private $propertyRef ; |
|
85 | + private $propertyRef; |
|
86 | 86 | |
87 | 87 | public function __construct(string $role, PropertyRef $propertyRef) |
88 | 88 | { |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | */ |
149 | 149 | public function getDomName(): string |
150 | 150 | { |
151 | - return $this->isPrincipal ? 'Principal' :'Dependent'; |
|
151 | + return $this->isPrincipal ? 'Principal' : 'Dependent'; |
|
152 | 152 | } |
153 | 153 | |
154 | 154 | /** |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | */ |
113 | 113 | public function getAttributes(): array |
114 | 114 | { |
115 | - if( |
|
115 | + if ( |
|
116 | 116 | $this->expression instanceof Expressions\Dynamic\TPathExpression || |
117 | 117 | $this->expression instanceof Expressions\Constant\StringConstant || |
118 | 118 | $this->expression instanceof Expressions\Constant\IntConstant || |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | $this->expression instanceof Expressions\Constant\DecimalConstant || |
121 | 121 | $this->expression instanceof Expressions\Constant\BoolConstant || |
122 | 122 | $this->expression instanceof Expressions\Constant\DateTimeConstant |
123 | - ){ |
|
123 | + ) { |
|
124 | 124 | return [$this->expression]; |
125 | 125 | } |
126 | 126 | return []; |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | */ |
132 | 132 | public function getChildElements(): array |
133 | 133 | { |
134 | - if(!( |
|
134 | + if (!( |
|
135 | 135 | $this->expression instanceof Expressions\Dynamic\TPathExpression || |
136 | 136 | $this->expression instanceof Expressions\Constant\StringConstant || |
137 | 137 | $this->expression instanceof Expressions\Constant\IntConstant || |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | $this->expression instanceof Expressions\Constant\DecimalConstant || |
140 | 140 | $this->expression instanceof Expressions\Constant\BoolConstant || |
141 | 141 | $this->expression instanceof Expressions\Constant\DateTimeConstant |
142 | - )){ |
|
142 | + )) { |
|
143 | 143 | return [$this->expression]; |
144 | 144 | } |
145 | 145 | return []; |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | $this->expression instanceof Expressions\Constant\DecimalConstant || |
121 | 121 | $this->expression instanceof Expressions\Constant\BoolConstant || |
122 | 122 | $this->expression instanceof Expressions\Constant\DateTimeConstant |
123 | - ){ |
|
123 | + ) { |
|
124 | 124 | return [$this->expression]; |
125 | 125 | } |
126 | 126 | return []; |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | $this->expression instanceof Expressions\Constant\DecimalConstant || |
140 | 140 | $this->expression instanceof Expressions\Constant\BoolConstant || |
141 | 141 | $this->expression instanceof Expressions\Constant\DateTimeConstant |
142 | - )){ |
|
142 | + )) { |
|
143 | 143 | return [$this->expression]; |
144 | 144 | } |
145 | 145 | return []; |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | $base = []; |
167 | 167 | $base[] = new AttributeContainer("Term", $this->getTerm()); |
168 | 168 | $base[] = new AttributeContainer("Qualifier", $this->getQualifier()); |
169 | - if( |
|
169 | + if ( |
|
170 | 170 | $this->expression instanceof Expressions\Dynamic\TPathExpression || |
171 | 171 | $this->expression instanceof Expressions\Constant\StringConstant || |
172 | 172 | $this->expression instanceof Expressions\Constant\IntConstant || |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | $this->expression instanceof Expressions\Constant\DecimalConstant || |
175 | 175 | $this->expression instanceof Expressions\Constant\BoolConstant || |
176 | 176 | $this->expression instanceof Expressions\Constant\DateTimeConstant |
177 | - ){ |
|
177 | + ) { |
|
178 | 178 | $base[] = $this->expression; |
179 | 179 | } |
180 | 180 | return $base; |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | */ |
186 | 186 | public function getChildElements(): array |
187 | 187 | { |
188 | - if(!( |
|
188 | + if (!( |
|
189 | 189 | $this->expression instanceof Expressions\Dynamic\TPathExpression || |
190 | 190 | $this->expression instanceof Expressions\Constant\StringConstant || |
191 | 191 | $this->expression instanceof Expressions\Constant\IntConstant || |
@@ -193,7 +193,7 @@ discard block |
||
193 | 193 | $this->expression instanceof Expressions\Constant\DecimalConstant || |
194 | 194 | $this->expression instanceof Expressions\Constant\BoolConstant || |
195 | 195 | $this->expression instanceof Expressions\Constant\DateTimeConstant |
196 | - )){ |
|
196 | + )) { |
|
197 | 197 | return [$this->expression]; |
198 | 198 | } |
199 | 199 | return []; |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | $this->expression instanceof Expressions\Constant\DecimalConstant || |
175 | 175 | $this->expression instanceof Expressions\Constant\BoolConstant || |
176 | 176 | $this->expression instanceof Expressions\Constant\DateTimeConstant |
177 | - ){ |
|
177 | + ) { |
|
178 | 178 | $base[] = $this->expression; |
179 | 179 | } |
180 | 180 | return $base; |
@@ -193,7 +193,7 @@ discard block |
||
193 | 193 | $this->expression instanceof Expressions\Constant\DecimalConstant || |
194 | 194 | $this->expression instanceof Expressions\Constant\BoolConstant || |
195 | 195 | $this->expression instanceof Expressions\Constant\DateTimeConstant |
196 | - )){ |
|
196 | + )) { |
|
197 | 197 | return [$this->expression]; |
198 | 198 | } |
199 | 199 | return []; |
@@ -43,7 +43,7 @@ |
||
43 | 43 | unset($this->property[$offset]); |
44 | 44 | } |
45 | 45 | |
46 | - public function __toArray(){ |
|
46 | + public function __toArray() { |
|
47 | 47 | return $this->property; |
48 | 48 | } |
49 | 49 | } |
50 | 50 | \ No newline at end of file |
@@ -43,7 +43,8 @@ |
||
43 | 43 | unset($this->property[$offset]); |
44 | 44 | } |
45 | 45 | |
46 | - public function __toArray(){ |
|
46 | + public function __toArray() |
|
47 | + { |
|
47 | 48 | return $this->property; |
48 | 49 | } |
49 | 50 | } |
50 | 51 | \ No newline at end of file |
@@ -42,7 +42,7 @@ |
||
42 | 42 | unset($this->property[$offset]); |
43 | 43 | } |
44 | 44 | |
45 | - public function __toArray(){ |
|
45 | + public function __toArray() { |
|
46 | 46 | return $this->property; |
47 | 47 | } |
48 | 48 | } |
49 | 49 | \ No newline at end of file |
@@ -42,7 +42,8 @@ |
||
42 | 42 | unset($this->property[$offset]); |
43 | 43 | } |
44 | 44 | |
45 | - public function __toArray(){ |
|
45 | + public function __toArray() |
|
46 | + { |
|
46 | 47 | return $this->property; |
47 | 48 | } |
48 | 49 | } |
49 | 50 | \ No newline at end of file |
@@ -8,10 +8,10 @@ |
||
8 | 8 | |
9 | 9 | class AccessorType extends Enum |
10 | 10 | { |
11 | - protected const Public = "Public"; |
|
11 | + protected const public = "Public"; |
|
12 | 12 | protected const Internal = "Internal"; |
13 | - protected const Protected = "Protected"; |
|
14 | - protected const Private = "Private"; |
|
13 | + protected const protected = "Protected"; |
|
14 | + protected const private = "Private"; |
|
15 | 15 | |
16 | 16 | public static $cgNamespace = "http://schemas.microsoft.com/ado/2006/04/codegeneration"; |
17 | 17 | } |
18 | 18 | \ No newline at end of file |