toString() публичный Метод

Returns string representation of this HTTP message.
public toString ( ) : string
Результат string the string representation of this HTTP message.
Пример #1
0
 /**
  * @inheritdoc
  */
 public function toString()
 {
     if (!$this->isPrepared) {
         $this->prepare();
     }
     $result = strtoupper($this->getMethod()) . ' ' . $this->getFullUrl();
     $parentResult = parent::toString();
     if ($parentResult !== '') {
         $result .= "\n" . $parentResult;
     }
     return $result;
 }
Пример #2
0
 /**
  * @inheritdoc
  */
 public function toString()
 {
     $result = strtoupper($this->getMethod()) . ' ' . $this->getUrl();
     $parentResult = parent::toString();
     if ($parentResult !== '') {
         $result .= "\n" . $parentResult;
     }
     return $result;
 }