solution = array( 'serviceSid' => $serviceSid, 'fieldTypeSid' => $fieldTypeSid, 'sid' => $sid, ); $this->uri = '/Services/' . rawurlencode($serviceSid) . '/FieldTypes/' . rawurlencode($fieldTypeSid) . '/FieldValues/' . rawurlencode($sid) . ''; } /** * Fetch a FieldValueInstance * * @return FieldValueInstance Fetched FieldValueInstance */ public function fetch() { $params = Values::of(array()); $payload = $this->version->fetch( 'GET', $this->uri, $params ); return new FieldValueInstance( $this->version, $payload, $this->solution['serviceSid'], $this->solution['fieldTypeSid'], $this->solution['sid'] ); } /** * Deletes the FieldValueInstance * * @return boolean True if delete succeeds, false otherwise */ public function delete() { return $this->version->delete('delete', $this->uri); } /** * 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.Preview.Understand.FieldValueContext ' . implode(' ', $context) . ']'; } }