@@ -149,6 +149,9 @@ discard block |
||
149 | 149 | $this->analysis[$expression] = $this->typeSystem->getTypeFromValue($expression->evaluate($this->analysisContext->getEvaluationContext())); |
150 | 150 | } |
151 | 151 | |
152 | + /** |
|
153 | + * @param string $constantName |
|
154 | + */ |
|
152 | 155 | private function verifyConstantDefined($constantName) |
153 | 156 | { |
154 | 157 | if (!defined($constantName)) { |
@@ -234,6 +237,9 @@ discard block |
||
234 | 237 | } |
235 | 238 | } |
236 | 239 | |
240 | + /** |
|
241 | + * @param string $type |
|
242 | + */ |
|
237 | 243 | protected function validateStaticClassName(O\Expression $expression, $type) |
238 | 244 | { |
239 | 245 | if ($expression instanceof O\ValueExpression) { |
@@ -321,6 +321,9 @@ discard block |
||
321 | 321 | return $ancestorTypes; |
322 | 322 | } |
323 | 323 | |
324 | + /** |
|
325 | + * @param string $classType |
|
326 | + */ |
|
324 | 327 | protected function getObjectTypeData($classType) |
325 | 328 | { |
326 | 329 | $classType = $this->normalizeClassName($classType); |
@@ -418,6 +421,9 @@ discard block |
||
418 | 421 | $indexer); |
419 | 422 | } |
420 | 423 | |
424 | + /** |
|
425 | + * @param string $objectTypeId |
|
426 | + */ |
|
421 | 427 | protected function objectCasts($objectTypeId) |
422 | 428 | { |
423 | 429 | return [ |
@@ -426,6 +432,9 @@ discard block |
||
426 | 432 | ]; |
427 | 433 | } |
428 | 434 | |
435 | + /** |
|
436 | + * @param string $objectTypeId |
|
437 | + */ |
|
429 | 438 | protected function objectUnaryOperations($objectTypeId) |
430 | 439 | { |
431 | 440 | return [ |
@@ -18,6 +18,9 @@ discard block |
||
18 | 18 | */ |
19 | 19 | protected $composedTypes; |
20 | 20 | |
21 | + /** |
|
22 | + * @param string $identifier |
|
23 | + */ |
|
21 | 24 | public function __construct( |
22 | 25 | $identifier, |
23 | 26 | IType $parentType, |
@@ -43,6 +46,9 @@ discard block |
||
43 | 46 | return $this->composedTypes; |
44 | 47 | } |
45 | 48 | |
49 | + /** |
|
50 | + * @param string $function |
|
51 | + */ |
|
46 | 52 | protected function getTypeData($function, O\Expression $expression) |
47 | 53 | { |
48 | 54 | foreach ($this->composedTypes as $composedType) { |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Pinq\Analysis\BinaryOperations\BinaryOperation; |
6 | 6 | use Pinq\Analysis\TypeOperations\TypeOperation; |
7 | -use Pinq\Expressions\Operators; |
|
8 | 7 | |
9 | 8 | /** |
10 | 9 | * Base class of the type system. |
@@ -34,7 +34,7 @@ |
||
34 | 34 | |
35 | 35 | /** |
36 | 36 | * {@inheritDoc} |
37 | - * @param Collection|null $source |
|
37 | + * @param null|Traversable $source |
|
38 | 38 | */ |
39 | 39 | public static function from($elements, Iterators\IIteratorScheme $scheme = null, Traversable $source = null) |
40 | 40 | { |
@@ -26,6 +26,9 @@ |
||
26 | 26 | */ |
27 | 27 | private $isReference; |
28 | 28 | |
29 | + /** |
|
30 | + * @param boolean $isReference |
|
31 | + */ |
|
29 | 32 | public function __construct(Expression $key = null, Expression $value, $isReference) |
30 | 33 | { |
31 | 34 | $this->key = $key; |
@@ -41,6 +41,10 @@ |
||
41 | 41 | */ |
42 | 42 | private $bodyExpressions; |
43 | 43 | |
44 | + /** |
|
45 | + * @param boolean $returnsReference |
|
46 | + * @param boolean $isStatic |
|
47 | + */ |
|
44 | 48 | public function __construct( |
45 | 49 | $returnsReference, |
46 | 50 | $isStatic, |
@@ -24,7 +24,7 @@ |
||
24 | 24 | } |
25 | 25 | |
26 | 26 | /** |
27 | - * @return Expression[] |
|
27 | + * @return ArgumentExpression[] |
|
28 | 28 | */ |
29 | 29 | public function getArguments() |
30 | 30 | { |
@@ -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)); |