@@ -51,6 +51,9 @@ |
||
| 51 | 51 | |
| 52 | 52 | abstract protected function updateValues(array $values); |
| 53 | 53 | |
| 54 | + /** |
|
| 55 | + * @param string $code |
|
| 56 | + */ |
|
| 54 | 57 | final protected function compileParameters(&$code) |
| 55 | 58 | { |
| 56 | 59 | $code .= implode(',', self::compileAll($this->values)); |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | * @param callable $orderByFunction |
| 34 | 34 | * @param boolean $isAscending |
| 35 | 35 | * |
| 36 | - * @return IOrderedIterator |
|
| 36 | + * @return OrderedIterator |
|
| 37 | 37 | */ |
| 38 | 38 | final public function thenOrderBy(callable $orderByFunction, $isAscending) |
| 39 | 39 | { |
@@ -13,6 +13,9 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | class GeneratorScheme extends Common\IteratorScheme |
| 15 | 15 | { |
| 16 | + /** |
|
| 17 | + * @param string $phpVersion |
|
| 18 | + */ |
|
| 16 | 19 | public static function compatibleWith($phpVersion) |
| 17 | 20 | { |
| 18 | 21 | // HHVM does not support foreach by reference on iterators. |
@@ -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); |