* $adminService = new Google\Service\Directory(...); * $customer = $adminService->customer; * */ class Customer extends \Google\Service\Resource { } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Customer::class, 'Google_Service_Directory_Resource_Customer');