for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Arcanedev\Gravatar\Exceptions;
use InvalidArgumentException;
/**
* Class InvalidImageRatingException
*
* @author ARCANEDEV <[email protected]>
*/
class InvalidImageRatingException extends InvalidArgumentException
{
/* -----------------------------------------------------------------
| Main Methods
| -----------------------------------------------------------------
* @param string $rating
* @return static
public static function make(string $rating)
return new static(
"Invalid rating '{$rating}' specified, only 'g', 'pg', 'r' or 'x' are supported."
);
}