public function prepare()
    {
        $content = $this->getContent();
        if ($content === null) {
            $this->getFormatter()->format($this);
        } elseif (is_array($content)) {
            $this->prepareMultiPartContent($content);
        }

        $this->isPrepared = true;

        return $this;
    }
public function prepare()
    {
        $content = $this->getContent();
        if ($content === null) {
            $this->getFormatter()->format($this);
        } elseif (is_array($content)) {
            $this->prepareMultiPartContent($content);
        }

        $this->isPrepared = true;

        return $this;
    }
public function prepare ( ) { $ content = $ this -> getContent ( ) ; if ( $ content === null ) { $ this -> getFormatter ( ) -> format ( $ this ) ; } elseif ( is_array ( $ content ) ) { $ this -> prepareMultiPartContent ( $ content ) ; } $ this -> isPrepared = true ; return $ this ; }
Prepares this request instance for sending.
This method should be invoked by transport before sending a request.
Do not call this method unless you know what you are doing.
@return $this self reference.
Prepares this request instance for sending . This method should be invoked by transport before sending a request . Do not call this method unless you know what you are doing .