public function fromResponse($response)
    {
        $this->page        = $response->list_info->page;
        $this->num_pages   = $response->list_info->num_pages;
        $this->num_results = $response->list_info->num_results;
        $this->page_size   = $response->list_info->page_size;

        property_exists($response, $this->list_type) && $this->setCollection($response->{$this->list_type});

        return $this;
    }
public function fromResponse($response)
    {
        $this->page        = $response->list_info->page;
        $this->num_pages   = $response->list_info->num_pages;
        $this->num_results = $response->list_info->num_results;
        $this->page_size   = $response->list_info->page_size;

        property_exists($response, $this->list_type) && $this->setCollection($response->{$this->list_type});

        return $this;
    }
public function fromResponse ( $ response ) { $ this -> page = $ response -> list_info -> page ; $ this -> num_pages = $ response -> list_info -> num_pages ; $ this -> num_results = $ response -> list_info -> num_results ; $ this -> page_size = $ response -> list_info -> page_size ; property_exists ( $ response , $ this -> list_type ) && $ this -> setCollection ( $ response -> { $ this -> list_type } ) ; return $ this ; }
Populate from response

@param  stdClass $response
@return static
@see    static::setCollection()
Populate from response