You are here

public function InputArgument::isRequired in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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);
}