Conditions | 3 |
Paths | 3 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
30 | public function __construct(Path $path, $extrapolate = true) |
||
31 | { |
||
32 | if (false === $path->isMonotonouslyIncreasingX()) { |
||
33 | throw new \InvalidArgumentException('Path must be monotony increasing by X'); |
||
34 | } |
||
35 | |||
36 | $this->path = $path; |
||
37 | $this->extrapolate = $extrapolate ? true : false; |
||
38 | } |
||
39 | |||
72 |