mediatekformation

BooleanToStringTransformer
in package
implements DataTransformerInterface

Transforms between a Boolean and a string.

Tags
author

Bernhard Schussek bschussek@gmail.com

author

Florian Eckerstorfer florian@eckerstorfer.org

Interfaces, Classes, Traits and Enums

DataTransformerInterface
Transforms a value between different representations.

Table of Contents

$falseValues  : mixed
$trueValue  : mixed
__construct()  : mixed
reverseTransform()  : bool
Transforms a string into a Boolean.
transform()  : string|null
Transforms a Boolean into a string.

Properties

Methods

__construct()

public __construct(string $trueValue[, array<string|int, mixed> $falseValues = [null] ]) : mixed
Parameters
$trueValue : string

The value emitted upon transform if the input is true

$falseValues : array<string|int, mixed> = [null]
Return values
mixed

Search results