for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Canylmz\Rating\Exceptions;
use InvalidArgumentException;
use Canylmz\Rating\Contracts\Rateable;
class ModelNotRateable extends InvalidArgumentException
{
public static function create(string $className)
return new static('The given model class `'.$className.'` does not implement `'.Rateable::class.'` contract');
}