1 | <?php |
||
18 | class IntervalFunction implements FunctionInterface |
||
19 | { |
||
20 | /** @var Path */ |
||
21 | private $path; |
||
22 | |||
23 | /** @var bool */ |
||
24 | private $extrapolate; |
||
25 | |||
26 | /** |
||
27 | * @param Path $path |
||
28 | * @param bool $extrapolate |
||
29 | */ |
||
30 | public function __construct(Path $path, $extrapolate = true) |
||
39 | |||
40 | /** |
||
41 | * @param float $x |
||
42 | * |
||
43 | * @return float|null |
||
44 | */ |
||
45 | public function evaluate($x) |
||
71 | } |
||
72 |