FixerOptionBuilder
Table of Contents
-
$allowedTypes
: null|array<string|int, string>
-
$allowedValues
: null|array<string|int, mixed>
-
$default
: mixed
-
$deprecationMessage
: null|string
-
$description
: string
-
$isRequired
: bool
-
$name
: string
-
$normalizer
: null|Closure
-
__construct()
: mixed
-
getOption()
: FixerOptionInterface
-
setAllowedTypes()
: $this
-
setAllowedValues()
: $this
-
setDefault()
: $this
-
setDeprecationMessage()
: $this
-
setNormalizer()
: $this
$allowedTypes
private
null|array<string|int, string>
$allowedTypes
$allowedValues
private
null|array<string|int, mixed>
$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
__construct()
public
__construct(string $name, string $description) : mixed
Parameters
-
$name
: string
-
-
$description
: string
-
Return values
mixed
—
getOption()
public
getOption() : FixerOptionInterface
Return values
FixerOptionInterface
—
setAllowedTypes()
public
setAllowedTypes(array<string|int, string> $allowedTypes) : $this
Parameters
-
$allowedTypes
: array<string|int, string>
-
Return values
$this
—
setAllowedValues()
public
setAllowedValues(array<string|int, mixed> $allowedValues) : $this
Parameters
-
$allowedValues
: array<string|int, mixed>
-
Return values
$this
—
setDefault()
public
setDefault(mixed $default) : $this
Parameters
-
$default
: mixed
-
Return values
$this
—
setDeprecationMessage()
public
setDeprecationMessage(null|string $deprecationMessage) : $this
Parameters
-
$deprecationMessage
: null|string
-
Return values
$this
—
setNormalizer()
public
setNormalizer(Closure $normalizer) : $this
Parameters
-
$normalizer
: Closure
-
Return values
$this
—