mirror of
https://github.com/n3w/helpers-cli-input.git
synced 2025-12-19 12:43:23 +00:00
22 lines
508 B
PHP
22 lines
508 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace pointybeard\Helpers\Cli\Input\Exceptions;
|
|
|
|
class RequiredArgumentMissingException extends \Exception
|
|
{
|
|
private $argument;
|
|
|
|
public function __construct(string $argument, $code = 0, \Exception $previous = null)
|
|
{
|
|
$this->argument = strtoupper($argument);
|
|
|
|
return parent::__construct("missing argument {$this->argument}.", $code, $previous);
|
|
}
|
|
|
|
public function getArgumentName(): string
|
|
{
|
|
return $this->argument;
|
|
}
|
|
}
|