| 1 | <?php |
||
| 9 | class IntervalFunction implements FunctionInterface |
||
| 10 | { |
||
| 11 | /** @var Path */ |
||
| 12 | private $path; |
||
| 13 | |||
| 14 | /** @var bool */ |
||
| 15 | private $extrapolate; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @param Path $path |
||
| 19 | * @param bool $extrapolate |
||
| 20 | */ |
||
| 21 | public function __construct(Path $path, $extrapolate = true) |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param float $x |
||
| 33 | * |
||
| 34 | * @return float|null |
||
| 35 | */ |
||
| 36 | public function evaluate($x) |
||
| 62 | } |
||
| 63 |