[ Index ]

PHP Cross Reference of phpBB-3.3.14-deutsch

title

Body

[close]

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

(no description)

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

Defines 1 class

InputOption:: (11 methods):
  __construct()
  getShortcut()
  getName()
  acceptValue()
  isValueRequired()
  isValueOptional()
  isArray()
  setDefault()
  getDefault()
  getDescription()
  equals()


Class: InputOption  - X-Ref

Represents a command line option.

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

param: string                        $name        The option name
param: string|array|null             $shortcut    The shortcuts, can be null, a string of shortcuts delimited by | or an array of shortcuts
param: int|null                      $mode        The option mode: One of the VALUE_* constants
param: string                        $description A description text
param: string|string[]|int|bool|null $default     The default value (must be null for self::VALUE_NONE)

getShortcut()   X-Ref
Returns the option shortcut.

return: string|null The shortcut

getName()   X-Ref
Returns the option name.

return: string The name

acceptValue()   X-Ref
Returns true if the option accepts a value.

return: bool true if value mode is not self::VALUE_NONE, false otherwise

isValueRequired()   X-Ref
Returns true if the option requires a value.

return: bool true if value mode is self::VALUE_REQUIRED, false otherwise

isValueOptional()   X-Ref
Returns true if the option takes an optional value.

return: bool true if value mode is self::VALUE_OPTIONAL, false otherwise

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

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

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

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

getDefault()   X-Ref
Returns the default value.

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

getDescription()   X-Ref
Returns the description text.

return: string The description text

equals(self $option)   X-Ref
Checks whether the given option equals this one.

return: bool



Generated: Mon Nov 25 19:05:08 2024 Cross-referenced by PHPXref 0.7.1