예제 #1
0
 /**
  * @return string
  */
 public function toString()
 {
     return $this->holder->getContent();
 }
예제 #2
0
파일: JsonData.php 프로젝트: weew/http
 /**
  * @return array
  */
 public function getData()
 {
     $data = $this->getJsonEncoder()->decode($this->holder->getContent());
     return $data !== null ? $data : [];
 }