1 | <?php |
||
13 | class Project extends Operator |
||
14 | { |
||
15 | /** |
||
16 | * {@inheritdoc} |
||
17 | */ |
||
18 | 11 | public function getExpression() |
|
24 | |||
25 | /** |
||
26 | * Returns the average value of the numeric values that result from applying |
||
27 | * a specified expression to each document in a group of documents that |
||
28 | * share the same group by key. Ignores nun-numeric values. |
||
29 | * |
||
30 | * @see http://docs.mongodb.org/manual/reference/operator/aggregation/avg/ |
||
31 | * @see Expr::avg |
||
32 | * @param mixed|Expr $expression1 |
||
33 | * @param mixed|Expr $expression2, ... Additional expressions |
||
|
|||
34 | * @return $this |
||
35 | * |
||
36 | * @since 1.3 |
||
37 | */ |
||
38 | 2 | public function avg($expression1/* , $expression2, ... */) |
|
44 | |||
45 | /** |
||
46 | * Shorthand method to define which fields to be included. |
||
47 | * |
||
48 | * @param array $fields |
||
49 | * @return $this |
||
50 | */ |
||
51 | public function includeFields(array $fields) |
||
59 | |||
60 | /** |
||
61 | * Shorthand method to define which fields to be excluded. |
||
62 | * |
||
63 | * If you specify the exclusion of a field other than _id, you cannot employ |
||
64 | * any other $project specification forms. |
||
65 | 4 | * |
|
66 | * @since 1.5 |
||
67 | 4 | * @param array $fields |
|
68 | 4 | * @return $this |
|
69 | */ |
||
70 | public function excludeFields(array $fields) |
||
78 | |||
79 | /** |
||
80 | * Returns the highest value that results from applying an expression to |
||
81 | * each document in a group of documents that share the same group by key. |
||
82 | * |
||
83 | * @see http://docs.mongodb.org/manual/reference/operator/aggregation/max/ |
||
84 | 2 | * @see Expr::max |
|
85 | * @param mixed|Expr $expression1 |
||
86 | 2 | * @param mixed|Expr $expression2, ... Additional expressions |
|
87 | 2 | * @return $this |
|
88 | * |
||
89 | * @since 1.3 |
||
90 | 2 | */ |
|
91 | public function max($expression1/* , $expression2, ... */) |
||
97 | |||
98 | /** |
||
99 | * Returns the lowest value that results from applying an expression to each |
||
100 | * document in a group of documents that share the same group by key. |
||
101 | * |
||
102 | * @see http://docs.mongodb.org/manual/reference/operator/aggregation/min/ |
||
103 | * @see Expr::min |
||
104 | * @param mixed|Expr $expression1 |
||
105 | 2 | * @param mixed|Expr $expression2, ... Additional expressions |
|
106 | * @return $this |
||
107 | 2 | * |
|
108 | * @since 1.3 |
||
109 | 2 | */ |
|
110 | public function min($expression1/* , $expression2, ... */) |
||
116 | |||
117 | /** |
||
118 | * Calculates the population standard deviation of the input values. |
||
119 | * |
||
120 | * The argument can be any expression as long as it resolves to an array. |
||
121 | * |
||
122 | * @see https://docs.mongodb.org/manual/reference/operator/aggregation/stdDevPop/ |
||
123 | * @see Expr::stdDevPop |
||
124 | 2 | * @param mixed|Expr $expression1 |
|
125 | * @param mixed|Expr $expression2, ... Additional expressions |
||
126 | 2 | * @return $this |
|
127 | * |
||
128 | 2 | * @since 1.3 |
|
129 | */ |
||
130 | public function stdDevPop($expression1/* , $expression2, ... */) |
||
136 | |||
137 | /** |
||
138 | * Calculates the sample standard deviation of the input values. |
||
139 | * |
||
140 | * The argument can be any expression as long as it resolves to an array. |
||
141 | * |
||
142 | * @see https://docs.mongodb.org/manual/reference/operator/aggregation/stdDevSamp/ |
||
143 | * @see Expr::stdDevSamp |
||
144 | 2 | * @param mixed|Expr $expression1 |
|
145 | * @param mixed|Expr $expression2, ... Additional expressions |
||
146 | 2 | * @return $this |
|
147 | * |
||
148 | 2 | * @since 1.3 |
|
149 | */ |
||
150 | public function stdDevSamp($expression1/* , $expression2, ... */) |
||
156 | |||
157 | /** |
||
158 | * Calculates and returns the sum of all the numeric values that result from |
||
159 | * applying a specified expression to each document in a group of documents |
||
160 | * that share the same group by key. Ignores nun-numeric values. |
||
161 | * |
||
162 | * @see http://docs.mongodb.org/manual/reference/operator/aggregation/sum/ |
||
163 | * @see Expr::sum |
||
164 | 2 | * @param mixed|Expr $expression1 |
|
165 | * @param mixed|Expr $expression2, ... Additional expressions |
||
166 | 2 | * @return $this |
|
167 | * |
||
168 | 2 | * @since 1.3 |
|
169 | */ |
||
170 | public function sum($expression1/* , $expression2, ... */) |
||
176 | } |
||
177 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.