TypedOption
Read onlyYes
FinalYes
Methods
- __construct() : mixed
- asBool() : bool
- asBoolNullable() : bool|null
- asInt() : int
- asIntNullable() : int|null
- asListOfStrings() : array<string|int, mixed>
- asListOfStringsNullable() : array<string|int, mixed>|null
- asString() : string
- asStringNullable() : string|null
Methods
__construct()
public
__construct(string $name) : mixed
Parameters
- $name : string
asBool()
public
asBool(InputInterface $input) : bool
Parameters
- $input : InputInterface
Return values
boolasBoolNullable()
public
asBoolNullable(InputInterface $input) : bool|null
Parameters
- $input : InputInterface
Return values
bool|nullasInt()
public
asInt(InputInterface $input[, int|null $default = null ]) : int
Parameters
- $input : InputInterface
- $default : int|null = null
Return values
intasIntNullable()
public
asIntNullable(InputInterface $input) : int|null
Parameters
- $input : InputInterface
Return values
int|nullasListOfStrings()
public
asListOfStrings(InputInterface $input) : array<string|int, mixed>
Parameters
- $input : InputInterface
Return values
array<string|int, mixed>asListOfStringsNullable()
public
asListOfStringsNullable(InputInterface $input) : array<string|int, mixed>|null
Parameters
- $input : InputInterface
Return values
array<string|int, mixed>|nullasString()
public
asString(InputInterface $input[, string|null $default = null ]) : string
Parameters
- $input : InputInterface
- $default : string|null = null
Return values
stringasStringNullable()
public
asStringNullable(InputInterface $input) : string|null
Parameters
- $input : InputInterface