* $calendarService = new Google\Service\Calendar(...); * $channels = $calendarService->channels; * */ class Channels extends \Google\Service\Resource { /** * Stop watching resources through this channel (channels.stop) * * @param Channel $postBody * @param array $optParams Optional parameters. */ public function stop(Channel $postBody, $optParams = []) { $params = ['postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('stop', [$params]); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Channels::class, 'Google_Service_Calendar_Resource_Channels');