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;
class InvalidPointTypeException extends \InvalidArgumentException
{
* @param string $expected_type
* @param mixed $point
* @return self
public static function type($expected_type, $point)
return new static(sprintf(
'The point value must be of "%s" type. Actual type is "%s".',
$expected_type,
gettype($point)
));
}
* @param string $point
public static function point($expected_type, $point)
'The point value must be of "%s". Actual point value is "%s".',
$point