Свойство | Тип | Описание | |
---|---|---|---|
$flags | integer |
Метод | Описание | |
---|---|---|
__construct ( string $longName, string | null $shortName = null, integer $flags, string $description = null ) | Creates a new option. | |
getDescription ( ) : string | Returns the description text. | |
getLongName ( ) : string | Returns the long option name. | |
getShortName ( ) : string | Returns the short option name. | |
isLongNamePreferred ( ) : boolean | Returns whether using the long name is preferred over using the short name. | |
isShortNamePreferred ( ) : boolean | Returns whether using the short name is preferred over using the long name. |
Метод | Описание | |
---|---|---|
addDefaultFlags ( &$flags ) | ||
assertFlagsValid ( $flags ) | ||
assertLongNameValid ( $longName ) | ||
assertShortNameValid ( $shortName, $flags ) | ||
removeDashPrefix ( $string ) | ||
removeDoubleDashPrefix ( $string ) |
public __construct ( string $longName, string | null $shortName = null, integer $flags, string $description = null ) | ||
$longName | string | The long option name. |
$shortName | string | null | The short option name. |
$flags | integer | A bitwise combination of the option flag constants. |
$description | string | A human-readable description of the option. |
public getDescription ( ) : string | ||
Результат | string | The description text. |
public getLongName ( ) : string | ||
Результат | string | The long name. |
public getShortName ( ) : string | ||
Результат | string | The short name. |
public isLongNamePreferred ( ) : boolean | ||
Результат | boolean | Returns `true` if the long name is preferred over the short name. |
public isShortNamePreferred ( ) : boolean | ||
Результат | boolean | Returns `true` if the short name is preferred over the long name. |