original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Populate from response
  
  @param  stdClass $response
  @return static
  @see    static::setCollection()
docstring_tokens: Populate from response