setData() public method

Sets the data fields, which composes message content.
public setData ( mixed $data )
$data mixed content data fields.
コード例 #1
0
ファイル: Request.php プロジェクト: yiisoft/yii2-httpclient
 /**
  * @inheritdoc
  */
 public function setData($data)
 {
     if ($this->isPrepared) {
         $this->setContent(null);
         $this->isPrepared = false;
     }
     return parent::setData($data);
 }