src/Parser.php
private function prepareTextValue(DOMElement $xml, array $attributes = null)
    {
        $text = static::getElementText($xml, true);

        return (isset($attributes['type']) && 'text' === $attributes['type']) ?
            static::clearValue($text) :
            static::getPhpValue($text, null, $this);
    }
private function prepareTextValue(DOMElement $xml, array $attributes = null)
    {
        $text = static::getElementText($xml, true);

        return (isset($attributes['type']) && 'text' === $attributes['type']) ?
            static::clearValue($text) :
            static::getPhpValue($text, null, $this);
    }
private function prepareTextValue ( DOMElement $ xml , array $ attributes = null ) { $ text = static :: getElementText ( $ xml , true ) ; return ( isset ( $ attributes [ 'type' ] ) && 'text' === $ attributes [ 'type' ] ) ? static :: clearValue ( $ text ) : static :: getPhpValue ( $ text , null , $ this ) ; }
Convert bool like and numeric values to their php equivalent values.

@param DOMElement $xml the element to get the value from
@param array $attributes
@return mixed
Convert bool like and numeric values to their php equivalent values .