@@ -13,6 +13,9 @@ |
||
13 | 13 | */ |
14 | 14 | class IteratorScheme extends Common\IteratorScheme |
15 | 15 | { |
16 | + /** |
|
17 | + * @param string $phpVersion |
|
18 | + */ |
|
16 | 19 | public static function compatibleWith($phpVersion) |
17 | 20 | { |
18 | 21 | return version_compare($phpVersion, '5.4.0', '>='); |
@@ -14,6 +14,9 @@ |
||
14 | 14 | { |
15 | 15 | use Common\OrderedIterator; |
16 | 16 | |
17 | + /** |
|
18 | + * @param boolean $isAscending |
|
19 | + */ |
|
17 | 20 | public function __construct(IIterator $iterator, callable $orderByFunction, $isAscending) |
18 | 21 | { |
19 | 22 | parent::__construct($iterator); |
@@ -162,6 +162,9 @@ |
||
162 | 162 | } |
163 | 163 | } |
164 | 164 | |
165 | + /** |
|
166 | + * @param string $name |
|
167 | + */ |
|
165 | 168 | private function resolveMagicConstantValue($name) |
166 | 169 | { |
167 | 170 | switch (strtoupper($name)) { |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Pinq\Providers\DSL\Compilation\Processors\Expression; |
4 | 4 | |
5 | 5 | use Pinq\Expressions\ExpressionWalker; |
6 | -use Pinq\Queries; |
|
7 | 6 | use Pinq\Queries\Functions\IFunction; |
8 | 7 | |
9 | 8 | /** |
@@ -43,6 +43,10 @@ discard block |
||
43 | 43 | } |
44 | 44 | } |
45 | 45 | |
46 | + /** |
|
47 | + * @param string $name |
|
48 | + * @param integer $index |
|
49 | + */ |
|
46 | 50 | final protected function getOptionalFunctionAt($name, $index, O\MethodCallExpression $expression) |
47 | 51 | { |
48 | 52 | $argument = $this->getOptionalArgumentAt($index, $expression); |
@@ -54,11 +58,17 @@ discard block |
||
54 | 58 | return $this->getFunction("{$name}-{$index}", $argument); |
55 | 59 | } |
56 | 60 | |
61 | + /** |
|
62 | + * @param integer $index |
|
63 | + */ |
|
57 | 64 | final protected function getFunctionAt($name, $index, O\MethodCallExpression $expression) |
58 | 65 | { |
59 | 66 | return $this->getFunction("{$name}-{$index}", $this->getArgumentAt($index, $expression)); |
60 | 67 | } |
61 | 68 | |
69 | + /** |
|
70 | + * @param integer $index |
|
71 | + */ |
|
62 | 72 | final protected function getArgumentValueAt($index, O\MethodCallExpression $methodExpression) |
63 | 73 | { |
64 | 74 | $instance = new \stdClass(); |
@@ -75,6 +85,9 @@ discard block |
||
75 | 85 | return $argument; |
76 | 86 | } |
77 | 87 | |
88 | + /** |
|
89 | + * @param \stdClass $default |
|
90 | + */ |
|
78 | 91 | final protected function getOptionalArgumentValueAt( |
79 | 92 | $index, |
80 | 93 | O\MethodCallExpression $methodExpression, |
@@ -159,6 +159,9 @@ |
||
159 | 159 | $this->visit($expression->getValue()); |
160 | 160 | } |
161 | 161 | |
162 | + /** |
|
163 | + * @param integer $count |
|
164 | + */ |
|
162 | 165 | final protected function visitOrdering($count, O\MethodCallExpression $expression) |
163 | 166 | { |
164 | 167 | $projection = $this->getFunctionAt($this->getSegmentId("order-$count"), 0, $expression); |
@@ -29,6 +29,9 @@ |
||
29 | 29 | */ |
30 | 30 | protected $scopeInterpreter; |
31 | 31 | |
32 | + /** |
|
33 | + * @param string $segmentId |
|
34 | + */ |
|
32 | 35 | public function __construct( |
33 | 36 | $segmentId, |
34 | 37 | ISourceInterpretation $interpretation, |
@@ -31,6 +31,11 @@ discard block |
||
31 | 31 | */ |
32 | 32 | protected $bodyExpressions = []; |
33 | 33 | |
34 | + /** |
|
35 | + * @param string $callableId |
|
36 | + * @param string|null $scopeType |
|
37 | + * @param string|null $namespace |
|
38 | + */ |
|
34 | 39 | final public function __construct( |
35 | 40 | $callableId, |
36 | 41 | $scopeType, |
@@ -67,7 +72,7 @@ discard block |
||
67 | 72 | /** |
68 | 73 | * Gets a callable factory for the function structure. |
69 | 74 | * |
70 | - * @return callable |
|
75 | + * @return \Closure |
|
71 | 76 | */ |
72 | 77 | public static function factory() |
73 | 78 | { |
@@ -121,6 +126,9 @@ discard block |
||
121 | 126 | return $this->bodyExpressions === null; |
122 | 127 | } |
123 | 128 | |
129 | + /** |
|
130 | + * @param string $method |
|
131 | + */ |
|
124 | 132 | final protected function verifyNotInternal($method) |
125 | 133 | { |
126 | 134 | if ($this->isInternal()) { |
@@ -57,7 +57,7 @@ |
||
57 | 57 | * Gets an array containing the parameter ids as keys with their |
58 | 58 | * respective scoped variable name as the value. |
59 | 59 | * |
60 | - * @return array<string, string> |
|
60 | + * @return string[] string> |
|
61 | 61 | */ |
62 | 62 | public function getParameterScopedVariableMap(); |
63 | 63 |