for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* GpsLab component.
*
* @author Peter Gribanov <[email protected]>
* @copyright Copyright (c) 2016, Peter Gribanov
* @license http://opensource.org/licenses/MIT
*/
namespace GpsLab\Component\Interval\Exception;
use GpsLab\Component\Interval\IntervalInterface;
class OutOfIntervalException extends \OutOfRangeException
{
* @param mixed $point
* @param IntervalInterface $interval
* @return self
public static function create($point, IntervalInterface $interval)
return new static(sprintf('Point "%s" must be included in interval "%s".', $point, $interval));
}