public function setContent($content)
    {
        $this->content = null;
        if ($content === null) {
            return;
        }

        if (TypeHandling::isSimpleType(gettype($content)) && !is_array($content)) {
            $this->content = (string)$content;
        }

        if (is_resource($content)) {
            $this->content = $content;
        }

        return $this;
    }
public function setContent($content)
    {
        $this->content = null;
        if ($content === null) {
            return;
        }

        if (TypeHandling::isSimpleType(gettype($content)) && !is_array($content)) {
            $this->content = (string)$content;
        }

        if (is_resource($content)) {
            $this->content = $content;
        }

        return $this;
    }
public function setContent ( $ content ) { $ this -> content = null ; if ( $ content === null ) { return ; } if ( TypeHandling :: isSimpleType ( gettype ( $ content ) ) && ! is_array ( $ content ) ) { $ this -> content = ( string ) $ content ; } if ( is_resource ( $ content ) ) { $ this -> content = $ content ; } return $ this ; }
Explicitly sets the content of the message body

@param string $content The body content
@return self This message, for method chaining
@see withBody()
Explicitly sets the content of the message body