=== begin: PhpArrayScalars.php * verifying the PHP float primitive type
* ** For more information about this service, see the API * Documentation *
* * @author Google, Inc. */ class PhpArrayScalars extends \Google\Service { /** A non googleapis.com scope. */ const MAIL_GOOGLE_COM = "https://mail.google.com/"; /** a product level scope. */ const PRODUCT = "https://www.googleapis.com/auth/product"; /** A typical scope. */ const USERINFO_EMAIL = "https://www.googleapis.com/auth/userinfo.email"; public $getwitharrays; /** * Constructs the internal representation of the PhpArrayScalars service. * * @param Client|array $clientOrConfig The client used to deliver requests, or a * config array to pass to a new Client instance. * @param string $rootUrl The root URL used for requests to the service. */ public function __construct($clientOrConfig = [], $rootUrl = null) { parent::__construct($clientOrConfig); $this->rootUrl = $rootUrl ?: 'https://www.googleapis.com/'; $this->servicePath = 'php_float_type/v1/'; $this->version = 'v1'; $this->serviceName = 'php_array_scalars'; $this->getwitharrays = new PhpArrayScalars\Resource\Getwitharrays( $this, $this->serviceName, 'getwitharrays', [ 'methods' => [ 'get' => [ 'path' => 'arrays', 'httpMethod' => 'GET', 'parameters' => [], ], ] ] ); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(PhpArrayScalars::class, 'Google_Service_PhpArrayScalars'); === end: PhpArrayScalars.php === begin: PhpArrayScalars/ObjectWithScalarArrays.php arrayOfBooleans = $arrayOfBooleans; } /** * @return bool[] */ public function getArrayOfBooleans() { return $this->arrayOfBooleans; } /** * @param float[] */ public function setArrayOfFloats($arrayOfFloats) { $this->arrayOfFloats = $arrayOfFloats; } /** * @return float[] */ public function getArrayOfFloats() { return $this->arrayOfFloats; } /** * @param int[] */ public function setArrayOfIntegers($arrayOfIntegers) { $this->arrayOfIntegers = $arrayOfIntegers; } /** * @return int[] */ public function getArrayOfIntegers() { return $this->arrayOfIntegers; } /** * @param string[] */ public function setArrayOfStrings($arrayOfStrings) { $this->arrayOfStrings = $arrayOfStrings; } /** * @return string[] */ public function getArrayOfStrings() { return $this->arrayOfStrings; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(ObjectWithScalarArrays::class, 'Google_Service_PhpArrayScalars_ObjectWithScalarArrays'); === end: PhpArrayScalars/ObjectWithScalarArrays.php === begin: PhpArrayScalars/Resource/Getwitharrays.php * $php_array_scalarsService = new Google\Service\PhpArrayScalars(...); * $getwitharrays = $php_array_scalarsService->getwitharrays; * */ class Getwitharrays extends \Google\Service\Resource { /** * returns an object arrays of scalars (getwitharrays.get) * * @param array $optParams Optional parameters. * @return ObjectWithArrays */ public function get($optParams = []) { $params = []; $params = array_merge($params, $optParams); return $this->call('get', [$params], ObjectWithArrays::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Getwitharrays::class, 'Google_Service_PhpArrayScalars_Resource_Getwitharrays'); === end: PhpArrayScalars/Resource/Getwitharrays.php