* $placesService = new Google\Service\MapsPlaces(...); * $Text = $placesService->Text; * */ class Text extends \Google\Service\Resource { /** * Text query based place search. (Text.search) * * @param GoogleMapsPlacesV1SearchTextRequest $postBody * @param array $optParams Optional parameters. * @return GoogleMapsPlacesV1SearchTextResponse */ public function search(GoogleMapsPlacesV1SearchTextRequest $postBody, $optParams = []) { $params = ['postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('search', [$params], GoogleMapsPlacesV1SearchTextResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Text::class, 'Google_Service_MapsPlaces_Resource_Text');