protected function toString($value)
    {
        if (is_numeric($value)) {
            return "$value";
        }
        if ($value === true) {
            return 'true';
        }
        if ($value === false) {
            return 'false';
        }
        if (is_null($value)) {
            return '';
        }
        if ($this->getTypeCheck()->isArray($value) && count($value) === 1) {
            return $this->toString(reset($value));
        }

        return $value;
    }
protected function toString($value)
    {
        if (is_numeric($value)) {
            return "$value";
        }
        if ($value === true) {
            return 'true';
        }
        if ($value === false) {
            return 'false';
        }
        if (is_null($value)) {
            return '';
        }
        if ($this->getTypeCheck()->isArray($value) && count($value) === 1) {
            return $this->toString(reset($value));
        }

        return $value;
    }
protected function toString ( $ value ) { if ( is_numeric ( $ value ) ) { return "$value" ; } if ( $ value === true ) { return 'true' ; } if ( $ value === false ) { return 'false' ; } if ( is_null ( $ value ) ) { return '' ; } if ( $ this -> getTypeCheck ( ) -> isArray ( $ value ) && count ( $ value ) === 1 ) { return $ this -> toString ( reset ( $ value ) ) ; } return $ value ; }
Convert a value to a string representation of that value. For example, null becomes "".

@param mixed $value

@return string|mixed
Convert a value to a string representation of that value . For example null becomes .