original_string: public function all(array $params = array())
      {
          $endpoint = '/admin/events.json';
          $response = $this->request($endpoint, 'GET', $params);
          return $this->createCollection(Event::class, $response['events']);
      }
code: public function all(array $params = array())
      {
          $endpoint = '/admin/events.json';
          $response = $this->request($endpoint, 'GET', $params);
          return $this->createCollection(Event::class, $response['events']);
      }
code_tokens: public function all ( array $ params = array ( ) ) { $ endpoint = '/admin/events.json' ; $ response = $ this -> request ( $ endpoint , 'GET' , $ params ) ; return $ this -> createCollection ( Event :: class , $ response [ 'events' ] ) ; }
docstring: Get a list of all events
  
  @link   https://help.shopify.com/api/reference/event#index
  @param  array $params
  @return Event[]
docstring_tokens: Get a list of all events