You are here

public function InputArgument::isRequired in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/console/Input/InputArgument.php \Symfony\Component\Console\Input\InputArgument::isRequired()

Returns true if the argument is required.

Return value

bool true if parameter mode is self::REQUIRED, false otherwise

File

vendor/symfony/console/Input/InputArgument.php, line 70

Class

InputArgument
Represents a command line argument.

Namespace

Symfony\Component\Console\Input

Code

public function isRequired() {
  return self::REQUIRED === (self::REQUIRED & $this->mode);
}