InputDefinition::hasOption()

bool hasOption(string $name)

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).

Parameters

string $name The InputOption name

Return Value

bool true if the InputOption object exists, false otherwise
doc_Symfony
2016-10-28 06:21:18
Comments
Leave a Comment

Please login to continue.