@@ -311,12 +311,12 @@ |
||
| 311 | 311 | function tuple(int $offset = 0): ITuple; |
| 312 | 312 | |
| 313 | 313 | /** |
| 314 | - * @param int|string|ITupleEvaluator|\Closure $colOffsetOrNameOrEvaluator |
|
| 314 | + * @param integer $colOffsetOrNameOrEvaluator |
|
| 315 | 315 | * Specification of column from which to get the value. See {@link col()} for more |
| 316 | 316 | * details on the column specification. |
| 317 | 317 | * @param int $tupleOffset zero-based offset of the tuple to get; |
| 318 | 318 | * if negative, the <tt>-$tupleOffset</tt>'th tuple from the end is returned |
| 319 | - * @return mixed |
|
| 319 | + * @return string |
|
| 320 | 320 | * @throws \OutOfBoundsException when this relation has fewer than <tt>$tupleOffset+1</tt> tuples, or fewer than |
| 321 | 321 | * <tt>-$tupleOffset</tt> tuples if <tt>$tupleOffset</tt> is negative |
| 322 | 322 | * @throws UndefinedColumnException if no column matches the specification |
@@ -442,7 +442,7 @@ |
||
| 442 | 442 | /** |
| 443 | 443 | * Multiplies this time interval with a scalar and returns the result as a new time interval object. |
| 444 | 444 | * |
| 445 | - * @param number $multiplier |
|
| 445 | + * @param integer $multiplier |
|
| 446 | 446 | * @return TimeInterval |
| 447 | 447 | */ |
| 448 | 448 | public function multiply($multiplier): TimeInterval |
@@ -18,6 +18,9 @@ |
||
| 18 | 18 | */ |
| 19 | 19 | trait RelationMacros |
| 20 | 20 | { |
| 21 | + /** |
|
| 22 | + * @param string[] $columns |
|
| 23 | + */ |
|
| 21 | 24 | abstract public function project($columns): IRelation; |
| 22 | 25 | |
| 23 | 26 | abstract public function tuple(int $offset = 0): ITuple; |
@@ -301,6 +301,9 @@ |
||
| 301 | 301 | { |
| 302 | 302 | private $refresher; |
| 303 | 303 | |
| 304 | + /** |
|
| 305 | + * @param \Closure $refresher |
|
| 306 | + */ |
|
| 304 | 307 | public function __construct($refresher) |
| 305 | 308 | { |
| 306 | 309 | $this->refresher = $refresher; |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | * |
| 11 | 11 | * @param string $pattern |
| 12 | 12 | * @param callable $callback |
| 13 | - * @param string|string[] $subject |
|
| 13 | + * @param string $subject |
|
| 14 | 14 | * @param int $limit |
| 15 | 15 | * @param int|null $count |
| 16 | 16 | * @return string|string[] depending on whether <tt>$subject</tt> is <tt>string</tt> or <tt>array</tt>, |
@@ -17,8 +17,8 @@ |
||
| 17 | 17 | /** |
| 18 | 18 | * Creates a new box from a corner and its opposite corner, each as either a {@link Point} or a pair of coordinates. |
| 19 | 19 | * |
| 20 | - * @param Point|float[] $corner |
|
| 21 | - * @param Point|float[] $oppositeCorner |
|
| 20 | + * @param Point|null $corner |
|
| 21 | + * @param Point|null $oppositeCorner |
|
| 22 | 22 | * @return Box |
| 23 | 23 | */ |
| 24 | 24 | public static function fromOppositeCorners($corner, $oppositeCorner): Box |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | /** |
| 16 | 16 | * Creates a new circle by its center point and radius. |
| 17 | 17 | * |
| 18 | - * @param Point|float[] $center the center point |
|
| 18 | + * @param Point|null $center the center point |
|
| 19 | 19 | * @param float $radius radius of the circle |
| 20 | 20 | * @return Circle |
| 21 | 21 | */ |
@@ -17,8 +17,8 @@ |
||
| 17 | 17 | /** |
| 18 | 18 | * Creates a new line segment from its start and end point, each as either a {@link Point} or a pair of coordinates. |
| 19 | 19 | * |
| 20 | - * @param Point|float[] $start |
|
| 21 | - * @param Point|float[] $end |
|
| 20 | + * @param Point|null $start |
|
| 21 | + * @param Point|null $end |
|
| 22 | 22 | * @return LineSegment |
| 23 | 23 | */ |
| 24 | 24 | public static function fromEndpoints($start, $end): LineSegment |
@@ -35,6 +35,7 @@ discard block |
||
| 35 | 35 | * |
| 36 | 36 | * @param string|string[] one or more names of parameters the cached values of which to invalidate; |
| 37 | 37 | * <tt>null</tt> invalidates everything |
| 38 | + * @return void |
|
| 38 | 39 | */ |
| 39 | 40 | function invalidateCache($paramName = null): void; |
| 40 | 41 | |
@@ -47,6 +48,7 @@ discard block |
||
| 47 | 48 | * |
| 48 | 49 | * @param string|string[] $paramName one or more names of parameters to disabled caching values of; |
| 49 | 50 | * <tt>null</tt> disables the caching altogether |
| 51 | + * @return void |
|
| 50 | 52 | */ |
| 51 | 53 | function disableCaching($paramName = null): void; |
| 52 | 54 | |
@@ -58,6 +60,7 @@ discard block |
||
| 58 | 60 | * argument (which is the default). |
| 59 | 61 | * |
| 60 | 62 | * @param string|string[] $paramName |
| 63 | + * @return void |
|
| 61 | 64 | */ |
| 62 | 65 | function enableCaching($paramName = null): void; |
| 63 | 66 | } |