src/i18n/Formatter.php
public function asBoolean($value)
    {
        if ($value === null) {
            return $this->getNullDisplay();
        }

        return $value ? $this->getBooleanFormat()[1] : $this->getBooleanFormat()[0];
    }
public function asBoolean($value)
    {
        if ($value === null) {
            return $this->getNullDisplay();
        }

        return $value ? $this->getBooleanFormat()[1] : $this->getBooleanFormat()[0];
    }
public function asBoolean ( $ value ) { if ( $ value === null ) { return $ this -> getNullDisplay ( ) ; } return $ value ? $ this -> getBooleanFormat ( ) [ 1 ] : $ this -> getBooleanFormat ( ) [ 0 ] ; }
Formats the value as a boolean.
@param mixed $value the value to be formatted.
@return string the formatted result.
@see booleanFormat
Formats the value as a boolean .