public function renderContent()
    {
        if (is_object($this->content) && !method_exists($this->content, '__toString')) {
            throw new \LogicException('Cannot render content: it is an object without __toString method!');
        }

        if (is_array($this->content)) {
            throw new \LogicException('Cannot render content: it is an array!');
        }

        return (string) $this->content;
    }
public function renderContent()
    {
        if (is_object($this->content) && !method_exists($this->content, '__toString')) {
            throw new \LogicException('Cannot render content: it is an object without __toString method!');
        }

        if (is_array($this->content)) {
            throw new \LogicException('Cannot render content: it is an array!');
        }

        return (string) $this->content;
    }
public function renderContent ( ) { if ( is_object ( $ this -> content ) && ! method_exists ( $ this -> content , '__toString' ) ) { throw new \ LogicException ( 'Cannot render content: it is an object without __toString method!' ) ; } if ( is_array ( $ this -> content ) ) { throw new \ LogicException ( 'Cannot render content: it is an array!' ) ; } return ( string ) $ this -> content ; }
Render content.

@return string
@throws \LogicException
Render content .