for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Equip\Exception;
use Equip\Formatter\FormatterInterface;
use InvalidArgumentException;
class FormatterException extends InvalidArgumentException
{
/**
* @param string|object $spec
*
* @return static
*/
public static function invalidClass($spec)
if (is_object($spec)) {
$spec = get_class($spec);
}
return new static(sprintf(
'Formatter class `%s` must implement `%s`',
$spec,
FormatterInterface::class
));
* @param string|object $formatter
public static function needsQuality($formatter)
if (is_object($formatter)) {
$formatter = get_class($formatter);
'No quality have been set for the `%s` formatter',
$formatter