Guides

Option
in package

FinalYes
Attributes
#[Attribute]
\Attribute::TARGET_CLASS | \Attribute::IS_REPEATABLE

Table of Contents

Properties

$default  : bool|string|int|float|null
$description  : string
$example  : string|null
$name  : string
$type  : OptionType

Methods

__construct()  : mixed

Properties

$default read-only

public bool|string|int|float|null $default = null

$description read-only

public string $description = ''

$example read-only

public string|null $example = null

$name read-only

public string $name

Methods

__construct()

public __construct(string $name[, OptionType $type = OptionType::String ][, bool|string|int|float|null $default = null ][, string $description = '' ][, string|null $example = null ]) : mixed
Parameters
$name : string
$type : OptionType = OptionType::String
$default : bool|string|int|float|null = null
$description : string = ''
$example : string|null = null
On this page

Search results