You are here

public function InputInterface::hasOption in Zircon Profile 8

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

Returns true if an InputOption object exists by name.

Parameters

string $name The InputOption name:

Return value

bool true if the InputOption object exists, false otherwise

1 method overrides InputInterface::hasOption()
Input::hasOption in vendor/symfony/console/Input/Input.php
Returns true if an InputOption object exists by name.

File

vendor/symfony/console/Input/InputInterface.php, line 137

Class

InputInterface
InputInterface is the interface implemented by all input classes.

Namespace

Symfony\Component\Console\Input

Code

public function hasOption($name);