getData() public method

Returns the data fields, parsed from raw content.
public getData ( ) : mixed
return mixed content data fields.
コード例 #1
0
ファイル: Response.php プロジェクト: yiisoft/yii2-httpclient
 /**
  * @inheritdoc
  */
 public function getData()
 {
     $data = parent::getData();
     if ($data === null) {
         $content = $this->getContent();
         if (!empty($content)) {
             $data = $this->getParser()->parse($this);
             $this->setData($data);
         }
     }
     return $data;
 }