seregazhuk\PinterestBot\Api\Response::getData PHP Method

getData() public method

public getData ( string $key = '', null $default = null ) : mixed
$key string
$default null
return mixed
    public function getData($key = '', $default = null)
    {
        return $this->getValueByKey($key, $this->data, $default);
    }

Usage Example

コード例 #1
0
 /**
  * @return array
  */
 public function getResponseData()
 {
     $results = $this->response->getData('module.tree.data.results', []);
     return $results ?: $this->response->getResponseData();
 }