Пример #1
0
 /**
  * @param Path $path
  * @param bool $extrapolate
  */
 public function __construct(Path $path, $extrapolate = true)
 {
     if (false === $path->isMonotonouslyIncreasingX()) {
         throw new \InvalidArgumentException('Path must be monotony increasing by X');
     }
     $this->path = $path;
     $this->extrapolate = $extrapolate ? true : false;
 }