@@ -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 | /** |
@@ -125,7 +125,7 @@ |
||
125 | 125 | */ |
126 | 126 | public function setRole(?string $role): self |
127 | 127 | { |
128 | - if($role !== null && !isset($this->getType()->getNavigationProperty()[$role])){ |
|
128 | + if ($role !== null && !isset($this->getType()->getNavigationProperty()[$role])) { |
|
129 | 129 | throw new \InvalidArgumentException('If a roll is set on a assication End it should represent the navigation property on the attached type.'); |
130 | 130 | } |
131 | 131 | $this->role = $role; |
@@ -125,7 +125,7 @@ |
||
125 | 125 | */ |
126 | 126 | public function setRole(?string $role): self |
127 | 127 | { |
128 | - if($role !== null && !isset($this->getType()->getNavigationProperty()[$role])){ |
|
128 | + if($role !== null && !isset($this->getType()->getNavigationProperty()[$role])) { |
|
129 | 129 | throw new \InvalidArgumentException('If a roll is set on a assication End it should represent the navigation property on the attached type.'); |
130 | 130 | } |
131 | 131 | $this->role = $role; |
@@ -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 | /** |
@@ -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 []; |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | */ |
115 | 115 | public function getAttributes(): array |
116 | 116 | { |
117 | - if( |
|
117 | + if ( |
|
118 | 118 | // $this->expression instanceof Expressions\Dynamic\TPathExpression || |
119 | 119 | $this->expression instanceof Expressions\Constant\StringConstant || |
120 | 120 | $this->expression instanceof Expressions\Constant\IntConstant || |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | $this->expression instanceof Expressions\Constant\DecimalConstant || |
123 | 123 | $this->expression instanceof Expressions\Constant\BoolConstant || |
124 | 124 | $this->expression instanceof Expressions\Constant\DateTimeConstant |
125 | - ){ |
|
125 | + ) { |
|
126 | 126 | return [$this->expression]; |
127 | 127 | } |
128 | 128 | return []; |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | */ |
134 | 134 | public function getChildElements(): array |
135 | 135 | { |
136 | - if(!( |
|
136 | + if (!( |
|
137 | 137 | // $this->expression instanceof Expressions\Dynamic\TPathExpression || |
138 | 138 | $this->expression instanceof Expressions\Constant\StringConstant || |
139 | 139 | $this->expression instanceof Expressions\Constant\IntConstant || |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | $this->expression instanceof Expressions\Constant\DecimalConstant || |
142 | 142 | $this->expression instanceof Expressions\Constant\BoolConstant || |
143 | 143 | $this->expression instanceof Expressions\Constant\DateTimeConstant |
144 | - )){ |
|
144 | + )) { |
|
145 | 145 | return [$this->expression]; |
146 | 146 | } |
147 | 147 | 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 []; |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | $base = []; |
169 | 169 | $base[] = new AttributeContainer("Term", $this->getTerm()); |
170 | 170 | $base[] = new AttributeContainer("Qualifier", $this->getQualifier()); |
171 | - if( |
|
171 | + if ( |
|
172 | 172 | // $this->expression instanceof Expressions\Dynamic\TPathExpression || |
173 | 173 | $this->expression instanceof Expressions\Constant\StringConstant || |
174 | 174 | $this->expression instanceof Expressions\Constant\IntConstant || |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | $this->expression instanceof Expressions\Constant\DecimalConstant || |
177 | 177 | $this->expression instanceof Expressions\Constant\BoolConstant || |
178 | 178 | $this->expression instanceof Expressions\Constant\DateTimeConstant |
179 | - ){ |
|
179 | + ) { |
|
180 | 180 | $base[] = $this->expression; |
181 | 181 | } |
182 | 182 | return $base; |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | */ |
188 | 188 | public function getChildElements(): array |
189 | 189 | { |
190 | - if(!( |
|
190 | + if (!( |
|
191 | 191 | // $this->expression instanceof Expressions\Dynamic\TPathExpression || |
192 | 192 | $this->expression instanceof Expressions\Constant\StringConstant || |
193 | 193 | $this->expression instanceof Expressions\Constant\IntConstant || |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | $this->expression instanceof Expressions\Constant\DecimalConstant || |
196 | 196 | $this->expression instanceof Expressions\Constant\BoolConstant || |
197 | 197 | $this->expression instanceof Expressions\Constant\DateTimeConstant |
198 | - )){ |
|
198 | + )) { |
|
199 | 199 | return [$this->expression]; |
200 | 200 | } |
201 | 201 | 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 |
@@ -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 |
@@ -29,11 +29,11 @@ |
||
29 | 29 | /** |
30 | 30 | * @return array|AttributeContainer[] |
31 | 31 | */ |
32 | - public abstract function getAttributes(): array ; |
|
32 | + public abstract function getAttributes(): array; |
|
33 | 33 | |
34 | 34 | /** |
35 | 35 | * @return array|DomBase[] |
36 | 36 | */ |
37 | - public abstract function getChildElements(): array ; |
|
37 | + public abstract function getChildElements(): array; |
|
38 | 38 | |
39 | 39 | } |
40 | 40 | \ No newline at end of file |
@@ -11,7 +11,7 @@ |
||
11 | 11 | { |
12 | 12 | public function getAttributeValue(): ?string; |
13 | 13 | |
14 | - public function getAttributeNullCheck():bool ; |
|
14 | + public function getAttributeNullCheck():bool; |
|
15 | 15 | |
16 | 16 | public function getAttributeForVersion(): OdataVersions; |
17 | 17 |