You are here

public function Input::hasArgument in Zircon Profile 8.0

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

Returns true if an InputArgument object exists by name or position.

Parameters

string|int $name The InputArgument name or position:

Return value

bool true if the InputArgument object exists, false otherwise

Overrides InputInterface::hasArgument

File

vendor/symfony/console/Input/Input.php, line 160

Class

Input
Input is the base class for all concrete Input classes.

Namespace

Symfony\Component\Console\Input

Code

public function hasArgument($name) {
  return $this->definition
    ->hasArgument($name);
}