FixerOptionBuilder
in package
FinalYes
Table of Contents
Properties
- $allowedTypes : null|array<int, string>
- $allowedValues : null|array<int, null|callable(mixed): bool|scalar>
- $default : mixed
- $deprecationMessage : null|string
- $description : string
- $isRequired : bool
- $name : string
- $normalizer : null|Closure
Methods
- __construct() : mixed
- getOption() : FixerOptionInterface
- setAllowedTypes() : $this
- setAllowedValues() : $this
- setDefault() : $this
- setDeprecationMessage() : $this
- setNormalizer() : $this
Properties
$allowedTypes
private
null|array<int, string>
$allowedTypes
$allowedValues
private
null|array<int, null|callable(mixed): bool|scalar>
$allowedValues
$default
private
mixed
$default
$deprecationMessage
private
null|string
$deprecationMessage
$description
private
string
$description
$isRequired
private
bool
$isRequired
= true
$name
private
string
$name
$normalizer
private
null|Closure
$normalizer
Methods
__construct()
public
__construct(string $name, string $description) : mixed
Parameters
- $name : string
- $description : string
getOption()
public
getOption() : FixerOptionInterface
Return values
FixerOptionInterfacesetAllowedTypes()
public
setAllowedTypes(array<int, string> $allowedTypes) : $this
Parameters
- $allowedTypes : array<int, string>
Return values
$thissetAllowedValues()
public
setAllowedValues(array<int, null|callable(mixed): bool|scalar> $allowedValues) : $this
Parameters
- $allowedValues : array<int, null|callable(mixed): bool|scalar>
Return values
$thissetDefault()
public
setDefault(mixed $default) : $this
Parameters
- $default : mixed
Return values
$thissetDeprecationMessage()
public
setDeprecationMessage(string|null $deprecationMessage) : $this
Parameters
- $deprecationMessage : string|null
Return values
$thissetNormalizer()
public
setNormalizer(Closure $normalizer) : $this
Parameters
- $normalizer : Closure