code/libraries/joomlatools/library/view/abstract.php
public function setContent($content)
    {
        if (!is_null($content) && !is_string($content) && !is_callable(array($content, '__toString')))
        {
            throw new UnexpectedValueException(
                'The view content must be a string or object implementing __toString(), "'.gettype($content).'" given.'
            );
        }

        $this->_content = $content;
        return $this;
    }
public function setContent($content)
    {
        if (!is_null($content) && !is_string($content) && !is_callable(array($content, '__toString')))
        {
            throw new UnexpectedValueException(
                'The view content must be a string or object implementing __toString(), "'.gettype($content).'" given.'
            );
        }

        $this->_content = $content;
        return $this;
    }
public function setContent ( $ content ) { if ( ! is_null ( $ content ) && ! is_string ( $ content ) && ! is_callable ( array ( $ content , '__toString' ) ) ) { throw new UnexpectedValueException ( 'The view content must be a string or object implementing __toString(), "' . gettype ( $ content ) . '" given.' ) ; } $ this -> _content = $ content ; return $ this ; }
Get the contents

@param  object|string $content The contents of the view
@throws \UnexpectedValueException If the content is not a string are cannot be casted to a string.
@return KViewAbstract
Get the contents