Conditions | 3 |
Paths | 3 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | public function __construct(Path $path, $extrapolate = true) |
||
22 | { |
||
23 | if (false === $path->isMonotonouslyIncreasingX()) { |
||
24 | throw new \InvalidArgumentException('Path must be monotony increasing by X'); |
||
25 | } |
||
26 | |||
27 | $this->path = $path; |
||
28 | $this->extrapolate = $extrapolate ? true : false; |
||
29 | } |
||
30 | |||
63 |