@@ -89,6 +89,9 @@ |
||
89 | 89 | return $value; |
90 | 90 | } |
91 | 91 | |
92 | + /** |
|
93 | + * @return string|null |
|
94 | + */ |
|
92 | 95 | private static function getJsonErrorMsg() |
93 | 96 | { |
94 | 97 | if (PHP_VERSION_ID >= 50500) { |
@@ -55,6 +55,9 @@ |
||
55 | 55 | return new Line($a, $b, $c, [$p1, $p2]); |
56 | 56 | } |
57 | 57 | |
58 | + /** |
|
59 | + * @param Point[] $points |
|
60 | + */ |
|
58 | 61 | private function __construct(float $a, float $b, float $c, $points) |
59 | 62 | { |
60 | 63 | $this->a = $a; |
@@ -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 null|Point $start |
|
21 | + * @param null|Point $end |
|
22 | 22 | * @return LineSegment |
23 | 23 | */ |
24 | 24 | public static function fromEndpoints($start, $end): LineSegment |
@@ -68,6 +68,9 @@ |
||
68 | 68 | } |
69 | 69 | |
70 | 70 | |
71 | + /** |
|
72 | + * @param string|null $unit |
|
73 | + */ |
|
71 | 74 | private function __construct(Decimal $amount, $unit) |
72 | 75 | { |
73 | 76 | $this->amount = $amount; |
@@ -97,6 +97,9 @@ discard block |
||
97 | 97 | return new Quantity($val, $unit); |
98 | 98 | } |
99 | 99 | |
100 | + /** |
|
101 | + * @param string $value |
|
102 | + */ |
|
100 | 103 | public static function fromValue($value, string $unit = null): Quantity |
101 | 104 | { |
102 | 105 | if (!is_numeric($value)) { |
@@ -110,6 +113,9 @@ discard block |
||
110 | 113 | return new Quantity($value, $unit); |
111 | 114 | } |
112 | 115 | |
116 | + /** |
|
117 | + * @param string|null $unit |
|
118 | + */ |
|
113 | 119 | private function __construct($value, $unit) |
114 | 120 | { |
115 | 121 | $this->value = $value; |
@@ -166,6 +166,9 @@ discard block |
||
166 | 166 | return new Range($subtype, null, true, null, null, null, null); |
167 | 167 | } |
168 | 168 | |
169 | + /** |
|
170 | + * @param boolean $upperInc |
|
171 | + */ |
|
169 | 172 | private static function processBoundSpec($boundsOrLowerInc = '[)', $upperInc = null) |
170 | 173 | { |
171 | 174 | if (is_string($boundsOrLowerInc)) { |
@@ -192,6 +195,9 @@ discard block |
||
192 | 195 | } |
193 | 196 | |
194 | 197 | |
198 | + /** |
|
199 | + * @param IRangeCanonicalFunc|null $canonicalFunc |
|
200 | + */ |
|
195 | 201 | private function __construct( |
196 | 202 | ITotallyOrderedType $subtype, |
197 | 203 | $canonicalFunc, |
@@ -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 |
@@ -114,6 +114,9 @@ |
||
114 | 114 | return new $exClass($resultHandler, $query); |
115 | 115 | } |
116 | 116 | |
117 | + /** |
|
118 | + * @param resource $resultHandler |
|
119 | + */ |
|
117 | 120 | private function inferExceptionClass($resultHandler, StatementExceptionFactory $fallbackFactory = null): string |
118 | 121 | { |
119 | 122 | if ($this->bySqlStateCodeAndMessage || $this->bySqlStateCode || $this->bySqlStateClass) { |
@@ -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; |