FixerOption
in package
implements
FixerOptionInterface
FinalYes
Table of Contents
Interfaces
Methods
- __construct() : mixed
- getAllowedTypes() : null|array<int, string>
- getAllowedValues() : null|array<int, null|callable(mixed): bool|scalar>
- getDefault() : mixed
- getDescription() : string
- getName() : string
- getNormalizer() : Closure|null
- hasDefault() : bool
Methods
__construct()
public
__construct(string $name, string $description[, bool $isRequired = true ][, mixed $default = null ][, null|array<int, string> $allowedTypes = null ][, null|array<int, null|callable(mixed): bool|scalar> $allowedValues = null ][, Closure|null $normalizer = null ]) : mixed
Parameters
- $name : string
- $description : string
- $isRequired : bool = true
- $default : mixed = null
- $allowedTypes : null|array<int, string> = null
- $allowedValues : null|array<int, null|callable(mixed): bool|scalar> = null
- $normalizer : Closure|null = null
getAllowedTypes()
public
getAllowedTypes() : null|array<int, string>
Return values
null|array<int, string>getAllowedValues()
public
getAllowedValues() : null|array<int, null|callable(mixed): bool|scalar>
Return values
null|array<int, null|callable(mixed): bool|scalar>getDefault()
public
getDefault() : mixed
getDescription()
public
getDescription() : string
Return values
stringgetName()
public
getName() : string
Return values
stringgetNormalizer()
public
getNormalizer() : Closure|null
Return values
Closure|nullhasDefault()
public
hasDefault() : bool