[Console] Improved the explanation of the hasOption() method

This commit is contained in:
Javier Eguiluz 2016-10-05 12:47:52 +02:00 committed by Fabien Potencier
parent f4fe36a4e1
commit 29226ef116
1 changed files with 3 additions and 0 deletions

View File

@ -282,6 +282,9 @@ class InputDefinition
/**
* Returns true if an InputOption object exists by name.
*
* This method can't be used to check if the user included the option when
* executing the command (use getOption() instead).
*
* @param string $name The InputOption name
*
* @return bool true if the InputOption object exists, false otherwise