class BooleanStringFormatter (View source)

The BooleanStringFormatter class is responsible for formatting a string boolean representation to a PHP boolean value.

It is used in the XmlConfiguration class to convert the string XML boolean value to a PHP boolean value.

Methods

static 
toBoolean(string $value, bool $default)

No description

Details

static toBoolean(string $value, bool $default)

Parameters

string $value
bool $default