Skip to content

Commit acfe2ac

Browse files
authored
PHPLIB-1598 Use named types for enums (#1570)
1 parent 8b84786 commit acfe2ac

22 files changed

+49
-48
lines changed

generator/config/accumulator/bottom.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ arguments:
1212
-
1313
name: sortBy
1414
type:
15-
- object # SortSpec
15+
- sortBy
1616
description: |
1717
Specifies the order of results, with syntax similar to $sort.
1818
-

generator/config/accumulator/bottomN.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ arguments:
1919
-
2020
name: sortBy
2121
type:
22-
- object # SortSpec
22+
- sortBy
2323
description: |
2424
Specifies the order of results, with syntax similar to $sort.
2525
-

generator/config/accumulator/median.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ arguments:
2222
-
2323
name: method
2424
type:
25-
- string # AccumulatorPercentile
25+
- accumulatorPercentile
2626
description: |
2727
The method that mongod uses to calculate the 50th percentile value. The method must be 'approximate'.
2828
tests:

generator/config/accumulator/percentile.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ arguments:
3232
-
3333
name: method
3434
type:
35-
- string # AccumulatorPercentile
35+
- accumulatorPercentile
3636
description: |
3737
The method that mongod uses to calculate the percentile value. The method must be 'approximate'.
3838
tests:

generator/config/accumulator/top.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ arguments:
1313
-
1414
name: sortBy
1515
type:
16-
- object # SortSpec
16+
- sortBy
1717
description: |
1818
Specifies the order of results, with syntax similar to $sort.
1919
-

generator/config/accumulator/topN.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ arguments:
1919
-
2020
name: sortBy
2121
type:
22-
- object # SortSpec
22+
- sortBy
2323
description: |
2424
Specifies the order of results, with syntax similar to $sort.
2525
-

generator/config/expression/median.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ arguments:
2222
-
2323
name: method
2424
type:
25-
- string # AccumulatorPercentile
25+
- accumulatorPercentile
2626
description: |
2727
The method that mongod uses to calculate the 50th percentile value. The method must be 'approximate'.
2828
tests:

generator/config/expression/percentile.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ arguments:
3232
-
3333
name: method
3434
type:
35-
- string # AccumulatorPercentile
35+
- accumulatorPercentile
3636
description: |
3737
The method that mongod uses to calculate the percentile value. The method must be 'approximate'.
3838
tests:

generator/config/expression/sortArray.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ arguments:
1818
-
1919
name: sortBy
2020
type:
21-
- object # SortSpec
2221
- int
2322
- sortSpec
23+
- sortBy
2424
description: |
2525
The document specifies a sort ordering.
2626
tests:

generator/config/expressions.php

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -131,45 +131,36 @@
131131
],
132132

133133
// @todo add enum values
134-
'Granularity' => [
134+
'granularity' => [
135135
'acceptedTypes' => [...$bsonTypes['string']],
136136
],
137-
'FullDocument' => [
137+
'fullDocument' => [
138138
'acceptedTypes' => [...$bsonTypes['string']],
139139
],
140-
'FullDocumentBeforeChange' => [
140+
'fullDocumentBeforeChange' => [
141141
'acceptedTypes' => [...$bsonTypes['string']],
142142
],
143-
'AccumulatorPercentile' => [
143+
'accumulatorPercentile' => [
144144
'acceptedTypes' => [...$bsonTypes['string']],
145145
],
146-
'WhenMatched' => [
146+
'whenMatched' => [
147147
'acceptedTypes' => [...$bsonTypes['string']],
148148
],
149-
'WhenNotMatched' => [
149+
'whenNotMatched' => [
150150
'acceptedTypes' => [...$bsonTypes['string']],
151151
],
152152

153153
// @todo create specific model classes factories
154-
'OutCollection' => [
154+
'outCollection' => [
155155
'acceptedTypes' => [...$bsonTypes['object']],
156156
],
157-
'CollStats' => [
157+
'range' => [
158158
'acceptedTypes' => [...$bsonTypes['object']],
159159
],
160-
'Range' => [
160+
'sortBy' => [
161161
'acceptedTypes' => [...$bsonTypes['object']],
162162
],
163-
'FillOut' => [
164-
'acceptedTypes' => [...$bsonTypes['object']],
165-
],
166-
'SortSpec' => [
167-
'acceptedTypes' => [...$bsonTypes['object']],
168-
],
169-
'Window' => [
170-
'acceptedTypes' => [...$bsonTypes['object']],
171-
],
172-
'GeoPoint' => [
163+
'geoPoint' => [
173164
'acceptedTypes' => [...$bsonTypes['object']],
174165
],
175166

0 commit comments

Comments
 (0)