public function setContent(string $content = null): ResponseContextAbstract
    {
        if (is_null($content)) {
            return $this;
        }

        $this->assertIsValid($content);

        $this->content = $content;

        return $this;
    }
public function setContent(string $content = null): ResponseContextAbstract
    {
        if (is_null($content)) {
            return $this;
        }

        $this->assertIsValid($content);

        $this->content = $content;

        return $this;
    }
public function setContent ( string $ content = null ) : ResponseContextAbstract { if ( is_null ( $ content ) ) { return $ this ; } $ this -> assertIsValid ( $ content ) ; $ this -> content = $ content ; return $ this ; }
Set result content.

@param string $content

@throws ResponseContextException

@return ResponseContextAbstract
Set result content .