Ejemplo n.º 1
0
 public function __toString()
 {
     if (count($this->postFields) && empty($this->postFiles)) {
         return parent::__toString() . (string) $this->postFields;
     }
     return parent::__toString() . $this->body;
 }
 /**
  * @return string
  */
 public function __toString()
 {
     // Only attempt to include the POST data if it's only fields
     if (count($this->postFields) && empty($this->postFiles)) {
         return parent::__toString() . (string) $this->postFields;
     }
     return parent::__toString() . $this->body;
 }
 /**
  * Get the HTTP request as a string
  *
  * @return string
  */
 public function __toString()
 {
     return parent::__toString() . (count($this->getPostFields()) ? $this->postFields : $this->body);
 }