solution = array( 'accountSid' => $accountSid, 'queueSid' => $queueSid, 'callSid' => $callSid, ); $this->uri = '/Accounts/' . rawurlencode($accountSid) . '/Queues/' . rawurlencode($queueSid) . '/Members/' . rawurlencode($callSid) . '.json'; } /** * Fetch a MemberInstance * * @return MemberInstance Fetched MemberInstance */ public function fetch() { $params = Values::of(array()); $payload = $this->version->fetch( 'GET', $this->uri, $params ); return new MemberInstance( $this->version, $payload, $this->solution['accountSid'], $this->solution['queueSid'], $this->solution['callSid'] ); } /** * Update the MemberInstance * * @param string $url The url * @param string $method The method * @return MemberInstance Updated MemberInstance */ public function update($url, $method) { $data = Values::of(array('Url' => $url, 'Method' => $method, )); $payload = $this->version->update( 'POST', $this->uri, array(), $data ); return new MemberInstance( $this->version, $payload, $this->solution['accountSid'], $this->solution['queueSid'], $this->solution['callSid'] ); } /** * 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.Api.V2010.MemberContext ' . implode(' ', $context) . ']'; } }