FixerOptionBuilder
in package
FinalYes
Table of Contents
Methods
- __construct() : mixed
- getOption() : FixerOptionInterface
- setAllowedTypes() : $this
- setAllowedValues() : $this
- setDefault() : $this
- setDeprecationMessage() : $this
- setNormalizer() : $this
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