[ Index ]

PHP Cross Reference of phpBB-3.3.7-deutsch




/vendor/symfony/console/Input/ -> InputArgument.php (summary)

(no description)

File Size: 129 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

InputArgument:: (7 methods):

Class: InputArgument  - X-Ref

Represents a command line argument.

__construct($name, $mode = null, $description = '', $default = null)   X-Ref

param: string               $name        The argument name
param: int|null             $mode        The argument mode: self::REQUIRED or self::OPTIONAL
param: string               $description A description text
param: string|string[]|null $default     The default value (for self::OPTIONAL mode only)

getName()   X-Ref
Returns the argument name.

return: string The argument name

isRequired()   X-Ref
Returns true if the argument is required.

return: bool true if parameter mode is self::REQUIRED, false otherwise

isArray()   X-Ref
Returns true if the argument can take multiple values.

return: bool true if mode is self::IS_ARRAY, false otherwise

setDefault($default = null)   X-Ref
Sets the default value.

param: string|string[]|null $default The default value

getDefault()   X-Ref
Returns the default value.

return: string|string[]|null The default value

getDescription()   X-Ref
Returns the description text.

return: string The description text

Generated: Thu Mar 24 21:31:15 2022 Cross-referenced by PHPXref 0.7.1