for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare (strict_types = 1);
namespace Phpml\Exception;
class InvalidArgumentException extends \Exception
{
/**
* @return InvalidArgumentException
*/
public static function arraySizeNotMatch()
return new self('Size of given arrays not match');
}
* @param $name
*
public static function percentNotInRange($name)
return new self(sprintf('%s must be between 0.0 and 1.0', $name));
public static function arrayCantBeEmpty()
return new self('The array has zero elements');
* @param int $minimumSize
public static function arraySizeToSmall($minimumSize = 2)
return new self(sprintf('The array must have at least %s elements', $minimumSize));