json, $opts); $obj->setLastResponse($response); return $obj; } /** * @param array|null $params * @param array|string|null $options * * @return Update the inbound channels for the account */ public static function update($params = null) { self::_validateParams($params); $url = self::OBJECT_URL; list($response, $opts) = static::_staticRequest('patch', $url, $params, null); $obj = \Telnyx\Util\Util::convertToTelnyxObject($response->json, $opts); $obj->setLastResponse($response); return $obj; } }