amercier/php-cli-helpers

View on GitHub
src/Cli/Helpers/Exception/MissingScriptParameter.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php

namespace Cli\Helpers\Exception;

use Cli\Helpers\Exception as CliHelpersException;

/**
 * Exception that occurs with Script::run() where no <type> is set. Use
 * Script::set<Type>(<value>) to set a <type>.
 */
class MissingScriptParameter extends CliHelpersException
{
    public function __construct($type)
    {
        parent::__construct('Missing script ' . $type);
    }
}