for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/**
* GpsLab component.
*
* @author Peter Gribanov <[email protected]>
* @copyright Copyright (c) 2011, Peter Gribanov
* @license http://opensource.org/licenses/MIT
*/
namespace GpsLab\Component\Command\Exception;
use GpsLab\Component\Command\Command;
final class HandlerNotFoundException extends \RuntimeException
{
* @param Command $command
* @return self
public static function notFound(Command $command): self
$parts = explode('\\', get_class($command));
return new self(sprintf('Not found handler for command "%s".', end($parts)));
}