?? GreyFile — Mystic File Browser

Current path: home/webdevt/prestashop17/modules/ps_checkout/vendor/league/tactician/src/Exception/



?? Go up: /home/webdevt/prestashop17/modules/ps_checkout/vendor/league/tactician/src

?? Viewing: MissingHandlerException.php

<?php

namespace League\Tactician\Exception;

/**
 * No handler could be found for the given command.
 */
class MissingHandlerException extends \OutOfBoundsException implements Exception
{
    /**
     * @var string
     */
    private $commandName;

    /**
     * @param string $commandName
     *
     * @return static
     */
    public static function forCommand($commandName)
    {
        $exception = new static('Missing handler for command ' . $commandName);
        $exception->commandName = $commandName;

        return $exception;
    }

    /**
     * @return string
     */
    public function getCommandName()
    {
        return $this->commandName;
    }
}


??

??