solution = array( 'sid' => $sid, ); $this->uri = '/Events/' . rawurlencode($sid) . ''; } /** * Fetch a EventInstance * * @return EventInstance Fetched EventInstance */ public function fetch() { $params = Values::of(array()); $payload = $this->version->fetch( 'GET', $this->uri, $params ); return new EventInstance( $this->version, $payload, $this->solution['sid'] ); } /** * Provide a friendly representation * * @return string Machine friendly representation */ public function __toString() { $context = array(); foreach ($this->solution as $key => $value) { $context[] = "$key=$value"; } return '[Twilio.Monitor.V1.EventContext ' . implode(' ', $context) . ']'; } }