Webmozart\Console\Api\Args\Args::isArgumentDefined PHP Méthode

isArgumentDefined() public méthode

Returns whether an argument is defined in the format.
public isArgumentDefined ( string | integer $name ) : boolean
$name string | integer The argument name or its 0-based position in the argument list.
Résultat boolean Returns `true` if the argument exists and `false` otherwise.
    public function isArgumentDefined($name)
    {
        return $this->format->hasArgument($name);
    }

Usage Example

Exemple #1
0
 /**
  * {@inheritdoc}
  */
 public function hasArgument($name)
 {
     return $this->args ? $this->args->isArgumentDefined($name) : false;
 }
All Usage Examples Of Webmozart\Console\Api\Args\Args::isArgumentDefined