Example #1
0
 /**
  * Returns a list of Events associated with this Stack
  *
  * @param array $params
  * @return \OpenCloud\Common\Collection\PaginatedIterator
  */
 public function listEvents(array $params = array())
 {
     $url = clone $this->getUrl();
     $url->addPath(Event::resourceName())->setQuery($params);
     return $this->getService()->resourceList('Event', $url, $this);
 }