src/Room11/HTTP/Response/Response.php
public function setBody(Body $body)
    {
        $this->body = $body;
        $this->setAllHeaders($body->getHeaders());
        $this->setStatus($body->getStatusCode());

        return $this;
    }
public function setBody(Body $body)
    {
        $this->body = $body;
        $this->setAllHeaders($body->getHeaders());
        $this->setStatus($body->getStatusCode());

        return $this;
    }
public function setBody ( Body $ body ) { $ this -> body = $ body ; $ this -> setAllHeaders ( $ body -> getHeaders ( ) ) ; $ this -> setStatus ( $ body -> getStatusCode ( ) ) ; return $ this ; }
Assign a response entity body

@param null|string|callable|Body $body
@throws \InvalidArgumentException
@return Response Returns the current object instance
Assign a response entity body