Test Failed
Push — master ( d99c6b...fb4ca3 )
by Stiofan
15:44
created

getAnyoneCanAddSelf()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
/*
3
 * Copyright 2010 Google Inc.
4
 *
5
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6
 * use this file except in compliance with the License. You may obtain a copy of
7
 * the License at
8
 *
9
 * http://www.apache.org/licenses/LICENSE-2.0
10
 *
11
 * Unless required by applicable law or agreed to in writing, software
12
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14
 * License for the specific language governing permissions and limitations under
15
 * the License.
16
 */
17
18
/**
19
 * Service definition for Calendar (v3).
20
 *
21
 * <p>
22
 * Lets you manipulate events and other calendar data.</p>
23
 *
24
 * <p>
25
 * For more information about this service, see the API
26
 * <a href="https://developers.google.com/google-apps/calendar/firstapp" target="_blank">Documentation</a>
27
 * </p>
28
 *
29
 * @author Google, Inc.
30
 */
31
class Google_Service_Calendar extends Google_Service
32
{
33
  /** Manage your calendars. */
34
  const CALENDAR =
35
      "https://www.googleapis.com/auth/calendar";
36
  /** View your calendars. */
37
  const CALENDAR_READONLY =
38
      "https://www.googleapis.com/auth/calendar.readonly";
39
40
  public $acl;
41
  public $calendarList;
42
  public $calendars;
43
  public $channels;
44
  public $colors;
45
  public $events;
46
  public $freebusy;
47
  public $settings;
48
  
49
50
  /**
51
   * Constructs the internal representation of the Calendar service.
52
   *
53
   * @param Google_Client $client
54
   */
55
  public function __construct(Google_Client $client)
56
  {
57
    parent::__construct($client);
58
    $this->rootUrl = 'https://www.googleapis.com/';
59
    $this->servicePath = 'calendar/v3/';
60
    $this->version = 'v3';
61
    $this->serviceName = 'calendar';
0 ignored issues
show
Bug introduced by
The property serviceName does not exist. Did you maybe forget to declare it?

In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:

class MyClass { }

$x = new MyClass();
$x->foo = true;

Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion:

class MyClass {
    public $foo;
}

$x = new MyClass();
$x->foo = true;
Loading history...
62
63
    $this->acl = new Google_Service_Calendar_Acl_Resource(
64
        $this,
65
        $this->serviceName,
66
        'acl',
67
        array(
68
          'methods' => array(
69
            'delete' => array(
70
              'path' => 'calendars/{calendarId}/acl/{ruleId}',
71
              'httpMethod' => 'DELETE',
72
              'parameters' => array(
73
                'calendarId' => array(
74
                  'location' => 'path',
75
                  'type' => 'string',
76
                  'required' => true,
77
                ),
78
                'ruleId' => array(
79
                  'location' => 'path',
80
                  'type' => 'string',
81
                  'required' => true,
82
                ),
83
              ),
84
            ),'get' => array(
85
              'path' => 'calendars/{calendarId}/acl/{ruleId}',
86
              'httpMethod' => 'GET',
87
              'parameters' => array(
88
                'calendarId' => array(
89
                  'location' => 'path',
90
                  'type' => 'string',
91
                  'required' => true,
92
                ),
93
                'ruleId' => array(
94
                  'location' => 'path',
95
                  'type' => 'string',
96
                  'required' => true,
97
                ),
98
              ),
99
            ),'insert' => array(
100
              'path' => 'calendars/{calendarId}/acl',
101
              'httpMethod' => 'POST',
102
              'parameters' => array(
103
                'calendarId' => array(
104
                  'location' => 'path',
105
                  'type' => 'string',
106
                  'required' => true,
107
                ),
108
              ),
109
            ),'list' => array(
110
              'path' => 'calendars/{calendarId}/acl',
111
              'httpMethod' => 'GET',
112
              'parameters' => array(
113
                'calendarId' => array(
114
                  'location' => 'path',
115
                  'type' => 'string',
116
                  'required' => true,
117
                ),
118
                'pageToken' => array(
119
                  'location' => 'query',
120
                  'type' => 'string',
121
                ),
122
                'syncToken' => array(
123
                  'location' => 'query',
124
                  'type' => 'string',
125
                ),
126
                'maxResults' => array(
127
                  'location' => 'query',
128
                  'type' => 'integer',
129
                ),
130
                'showDeleted' => array(
131
                  'location' => 'query',
132
                  'type' => 'boolean',
133
                ),
134
              ),
135
            ),'patch' => array(
136
              'path' => 'calendars/{calendarId}/acl/{ruleId}',
137
              'httpMethod' => 'PATCH',
138
              'parameters' => array(
139
                'calendarId' => array(
140
                  'location' => 'path',
141
                  'type' => 'string',
142
                  'required' => true,
143
                ),
144
                'ruleId' => array(
145
                  'location' => 'path',
146
                  'type' => 'string',
147
                  'required' => true,
148
                ),
149
              ),
150
            ),'update' => array(
151
              'path' => 'calendars/{calendarId}/acl/{ruleId}',
152
              'httpMethod' => 'PUT',
153
              'parameters' => array(
154
                'calendarId' => array(
155
                  'location' => 'path',
156
                  'type' => 'string',
157
                  'required' => true,
158
                ),
159
                'ruleId' => array(
160
                  'location' => 'path',
161
                  'type' => 'string',
162
                  'required' => true,
163
                ),
164
              ),
165
            ),'watch' => array(
166
              'path' => 'calendars/{calendarId}/acl/watch',
167
              'httpMethod' => 'POST',
168
              'parameters' => array(
169
                'calendarId' => array(
170
                  'location' => 'path',
171
                  'type' => 'string',
172
                  'required' => true,
173
                ),
174
                'pageToken' => array(
175
                  'location' => 'query',
176
                  'type' => 'string',
177
                ),
178
                'syncToken' => array(
179
                  'location' => 'query',
180
                  'type' => 'string',
181
                ),
182
                'maxResults' => array(
183
                  'location' => 'query',
184
                  'type' => 'integer',
185
                ),
186
                'showDeleted' => array(
187
                  'location' => 'query',
188
                  'type' => 'boolean',
189
                ),
190
              ),
191
            ),
192
          )
193
        )
194
    );
195
    $this->calendarList = new Google_Service_Calendar_CalendarList_Resource(
196
        $this,
197
        $this->serviceName,
198
        'calendarList',
199
        array(
200
          'methods' => array(
201
            'delete' => array(
202
              'path' => 'users/me/calendarList/{calendarId}',
203
              'httpMethod' => 'DELETE',
204
              'parameters' => array(
205
                'calendarId' => array(
206
                  'location' => 'path',
207
                  'type' => 'string',
208
                  'required' => true,
209
                ),
210
              ),
211
            ),'get' => array(
212
              'path' => 'users/me/calendarList/{calendarId}',
213
              'httpMethod' => 'GET',
214
              'parameters' => array(
215
                'calendarId' => array(
216
                  'location' => 'path',
217
                  'type' => 'string',
218
                  'required' => true,
219
                ),
220
              ),
221
            ),'insert' => array(
222
              'path' => 'users/me/calendarList',
223
              'httpMethod' => 'POST',
224
              'parameters' => array(
225
                'colorRgbFormat' => array(
226
                  'location' => 'query',
227
                  'type' => 'boolean',
228
                ),
229
              ),
230
            ),'list' => array(
231
              'path' => 'users/me/calendarList',
232
              'httpMethod' => 'GET',
233
              'parameters' => array(
234
                'syncToken' => array(
235
                  'location' => 'query',
236
                  'type' => 'string',
237
                ),
238
                'showDeleted' => array(
239
                  'location' => 'query',
240
                  'type' => 'boolean',
241
                ),
242
                'minAccessRole' => array(
243
                  'location' => 'query',
244
                  'type' => 'string',
245
                ),
246
                'maxResults' => array(
247
                  'location' => 'query',
248
                  'type' => 'integer',
249
                ),
250
                'pageToken' => array(
251
                  'location' => 'query',
252
                  'type' => 'string',
253
                ),
254
                'showHidden' => array(
255
                  'location' => 'query',
256
                  'type' => 'boolean',
257
                ),
258
              ),
259
            ),'patch' => array(
260
              'path' => 'users/me/calendarList/{calendarId}',
261
              'httpMethod' => 'PATCH',
262
              'parameters' => array(
263
                'calendarId' => array(
264
                  'location' => 'path',
265
                  'type' => 'string',
266
                  'required' => true,
267
                ),
268
                'colorRgbFormat' => array(
269
                  'location' => 'query',
270
                  'type' => 'boolean',
271
                ),
272
              ),
273
            ),'update' => array(
274
              'path' => 'users/me/calendarList/{calendarId}',
275
              'httpMethod' => 'PUT',
276
              'parameters' => array(
277
                'calendarId' => array(
278
                  'location' => 'path',
279
                  'type' => 'string',
280
                  'required' => true,
281
                ),
282
                'colorRgbFormat' => array(
283
                  'location' => 'query',
284
                  'type' => 'boolean',
285
                ),
286
              ),
287
            ),'watch' => array(
288
              'path' => 'users/me/calendarList/watch',
289
              'httpMethod' => 'POST',
290
              'parameters' => array(
291
                'syncToken' => array(
292
                  'location' => 'query',
293
                  'type' => 'string',
294
                ),
295
                'showDeleted' => array(
296
                  'location' => 'query',
297
                  'type' => 'boolean',
298
                ),
299
                'minAccessRole' => array(
300
                  'location' => 'query',
301
                  'type' => 'string',
302
                ),
303
                'maxResults' => array(
304
                  'location' => 'query',
305
                  'type' => 'integer',
306
                ),
307
                'pageToken' => array(
308
                  'location' => 'query',
309
                  'type' => 'string',
310
                ),
311
                'showHidden' => array(
312
                  'location' => 'query',
313
                  'type' => 'boolean',
314
                ),
315
              ),
316
            ),
317
          )
318
        )
319
    );
320
    $this->calendars = new Google_Service_Calendar_Calendars_Resource(
321
        $this,
322
        $this->serviceName,
323
        'calendars',
324
        array(
325
          'methods' => array(
326
            'clear' => array(
327
              'path' => 'calendars/{calendarId}/clear',
328
              'httpMethod' => 'POST',
329
              'parameters' => array(
330
                'calendarId' => array(
331
                  'location' => 'path',
332
                  'type' => 'string',
333
                  'required' => true,
334
                ),
335
              ),
336
            ),'delete' => array(
337
              'path' => 'calendars/{calendarId}',
338
              'httpMethod' => 'DELETE',
339
              'parameters' => array(
340
                'calendarId' => array(
341
                  'location' => 'path',
342
                  'type' => 'string',
343
                  'required' => true,
344
                ),
345
              ),
346
            ),'get' => array(
347
              'path' => 'calendars/{calendarId}',
348
              'httpMethod' => 'GET',
349
              'parameters' => array(
350
                'calendarId' => array(
351
                  'location' => 'path',
352
                  'type' => 'string',
353
                  'required' => true,
354
                ),
355
              ),
356
            ),'insert' => array(
357
              'path' => 'calendars',
358
              'httpMethod' => 'POST',
359
              'parameters' => array(),
360
            ),'patch' => array(
361
              'path' => 'calendars/{calendarId}',
362
              'httpMethod' => 'PATCH',
363
              'parameters' => array(
364
                'calendarId' => array(
365
                  'location' => 'path',
366
                  'type' => 'string',
367
                  'required' => true,
368
                ),
369
              ),
370
            ),'update' => array(
371
              'path' => 'calendars/{calendarId}',
372
              'httpMethod' => 'PUT',
373
              'parameters' => array(
374
                'calendarId' => array(
375
                  'location' => 'path',
376
                  'type' => 'string',
377
                  'required' => true,
378
                ),
379
              ),
380
            ),
381
          )
382
        )
383
    );
384
    $this->channels = new Google_Service_Calendar_Channels_Resource(
385
        $this,
386
        $this->serviceName,
387
        'channels',
388
        array(
389
          'methods' => array(
390
            'stop' => array(
391
              'path' => 'channels/stop',
392
              'httpMethod' => 'POST',
393
              'parameters' => array(),
394
            ),
395
          )
396
        )
397
    );
398
    $this->colors = new Google_Service_Calendar_Colors_Resource(
399
        $this,
400
        $this->serviceName,
401
        'colors',
402
        array(
403
          'methods' => array(
404
            'get' => array(
405
              'path' => 'colors',
406
              'httpMethod' => 'GET',
407
              'parameters' => array(),
408
            ),
409
          )
410
        )
411
    );
412
    $this->events = new Google_Service_Calendar_Events_Resource(
413
        $this,
414
        $this->serviceName,
415
        'events',
416
        array(
417
          'methods' => array(
418
            'delete' => array(
419
              'path' => 'calendars/{calendarId}/events/{eventId}',
420
              'httpMethod' => 'DELETE',
421
              'parameters' => array(
422
                'calendarId' => array(
423
                  'location' => 'path',
424
                  'type' => 'string',
425
                  'required' => true,
426
                ),
427
                'eventId' => array(
428
                  'location' => 'path',
429
                  'type' => 'string',
430
                  'required' => true,
431
                ),
432
                'sendNotifications' => array(
433
                  'location' => 'query',
434
                  'type' => 'boolean',
435
                ),
436
              ),
437
            ),'get' => array(
438
              'path' => 'calendars/{calendarId}/events/{eventId}',
439
              'httpMethod' => 'GET',
440
              'parameters' => array(
441
                'calendarId' => array(
442
                  'location' => 'path',
443
                  'type' => 'string',
444
                  'required' => true,
445
                ),
446
                'eventId' => array(
447
                  'location' => 'path',
448
                  'type' => 'string',
449
                  'required' => true,
450
                ),
451
                'timeZone' => array(
452
                  'location' => 'query',
453
                  'type' => 'string',
454
                ),
455
                'alwaysIncludeEmail' => array(
456
                  'location' => 'query',
457
                  'type' => 'boolean',
458
                ),
459
                'maxAttendees' => array(
460
                  'location' => 'query',
461
                  'type' => 'integer',
462
                ),
463
              ),
464
            ),'import' => array(
465
              'path' => 'calendars/{calendarId}/events/import',
466
              'httpMethod' => 'POST',
467
              'parameters' => array(
468
                'calendarId' => array(
469
                  'location' => 'path',
470
                  'type' => 'string',
471
                  'required' => true,
472
                ),
473
                'supportsAttachments' => array(
474
                  'location' => 'query',
475
                  'type' => 'boolean',
476
                ),
477
              ),
478
            ),'insert' => array(
479
              'path' => 'calendars/{calendarId}/events',
480
              'httpMethod' => 'POST',
481
              'parameters' => array(
482
                'calendarId' => array(
483
                  'location' => 'path',
484
                  'type' => 'string',
485
                  'required' => true,
486
                ),
487
                'supportsAttachments' => array(
488
                  'location' => 'query',
489
                  'type' => 'boolean',
490
                ),
491
                'sendNotifications' => array(
492
                  'location' => 'query',
493
                  'type' => 'boolean',
494
                ),
495
                'maxAttendees' => array(
496
                  'location' => 'query',
497
                  'type' => 'integer',
498
                ),
499
              ),
500
            ),'instances' => array(
501
              'path' => 'calendars/{calendarId}/events/{eventId}/instances',
502
              'httpMethod' => 'GET',
503
              'parameters' => array(
504
                'calendarId' => array(
505
                  'location' => 'path',
506
                  'type' => 'string',
507
                  'required' => true,
508
                ),
509
                'eventId' => array(
510
                  'location' => 'path',
511
                  'type' => 'string',
512
                  'required' => true,
513
                ),
514
                'showDeleted' => array(
515
                  'location' => 'query',
516
                  'type' => 'boolean',
517
                ),
518
                'timeMax' => array(
519
                  'location' => 'query',
520
                  'type' => 'string',
521
                ),
522
                'alwaysIncludeEmail' => array(
523
                  'location' => 'query',
524
                  'type' => 'boolean',
525
                ),
526
                'maxResults' => array(
527
                  'location' => 'query',
528
                  'type' => 'integer',
529
                ),
530
                'pageToken' => array(
531
                  'location' => 'query',
532
                  'type' => 'string',
533
                ),
534
                'timeMin' => array(
535
                  'location' => 'query',
536
                  'type' => 'string',
537
                ),
538
                'timeZone' => array(
539
                  'location' => 'query',
540
                  'type' => 'string',
541
                ),
542
                'originalStart' => array(
543
                  'location' => 'query',
544
                  'type' => 'string',
545
                ),
546
                'maxAttendees' => array(
547
                  'location' => 'query',
548
                  'type' => 'integer',
549
                ),
550
              ),
551
            ),'list' => array(
552
              'path' => 'calendars/{calendarId}/events',
553
              'httpMethod' => 'GET',
554
              'parameters' => array(
555
                'calendarId' => array(
556
                  'location' => 'path',
557
                  'type' => 'string',
558
                  'required' => true,
559
                ),
560
                'orderBy' => array(
561
                  'location' => 'query',
562
                  'type' => 'string',
563
                ),
564
                'showHiddenInvitations' => array(
565
                  'location' => 'query',
566
                  'type' => 'boolean',
567
                ),
568
                'syncToken' => array(
569
                  'location' => 'query',
570
                  'type' => 'string',
571
                ),
572
                'showDeleted' => array(
573
                  'location' => 'query',
574
                  'type' => 'boolean',
575
                ),
576
                'iCalUID' => array(
577
                  'location' => 'query',
578
                  'type' => 'string',
579
                ),
580
                'updatedMin' => array(
581
                  'location' => 'query',
582
                  'type' => 'string',
583
                ),
584
                'singleEvents' => array(
585
                  'location' => 'query',
586
                  'type' => 'boolean',
587
                ),
588
                'timeMax' => array(
589
                  'location' => 'query',
590
                  'type' => 'string',
591
                ),
592
                'alwaysIncludeEmail' => array(
593
                  'location' => 'query',
594
                  'type' => 'boolean',
595
                ),
596
                'maxResults' => array(
597
                  'location' => 'query',
598
                  'type' => 'integer',
599
                ),
600
                'q' => array(
601
                  'location' => 'query',
602
                  'type' => 'string',
603
                ),
604
                'pageToken' => array(
605
                  'location' => 'query',
606
                  'type' => 'string',
607
                ),
608
                'timeMin' => array(
609
                  'location' => 'query',
610
                  'type' => 'string',
611
                ),
612
                'timeZone' => array(
613
                  'location' => 'query',
614
                  'type' => 'string',
615
                ),
616
                'privateExtendedProperty' => array(
617
                  'location' => 'query',
618
                  'type' => 'string',
619
                  'repeated' => true,
620
                ),
621
                'sharedExtendedProperty' => array(
622
                  'location' => 'query',
623
                  'type' => 'string',
624
                  'repeated' => true,
625
                ),
626
                'maxAttendees' => array(
627
                  'location' => 'query',
628
                  'type' => 'integer',
629
                ),
630
              ),
631
            ),'move' => array(
632
              'path' => 'calendars/{calendarId}/events/{eventId}/move',
633
              'httpMethod' => 'POST',
634
              'parameters' => array(
635
                'calendarId' => array(
636
                  'location' => 'path',
637
                  'type' => 'string',
638
                  'required' => true,
639
                ),
640
                'eventId' => array(
641
                  'location' => 'path',
642
                  'type' => 'string',
643
                  'required' => true,
644
                ),
645
                'destination' => array(
646
                  'location' => 'query',
647
                  'type' => 'string',
648
                  'required' => true,
649
                ),
650
                'sendNotifications' => array(
651
                  'location' => 'query',
652
                  'type' => 'boolean',
653
                ),
654
              ),
655
            ),'patch' => array(
656
              'path' => 'calendars/{calendarId}/events/{eventId}',
657
              'httpMethod' => 'PATCH',
658
              'parameters' => array(
659
                'calendarId' => array(
660
                  'location' => 'path',
661
                  'type' => 'string',
662
                  'required' => true,
663
                ),
664
                'eventId' => array(
665
                  'location' => 'path',
666
                  'type' => 'string',
667
                  'required' => true,
668
                ),
669
                'sendNotifications' => array(
670
                  'location' => 'query',
671
                  'type' => 'boolean',
672
                ),
673
                'alwaysIncludeEmail' => array(
674
                  'location' => 'query',
675
                  'type' => 'boolean',
676
                ),
677
                'supportsAttachments' => array(
678
                  'location' => 'query',
679
                  'type' => 'boolean',
680
                ),
681
                'maxAttendees' => array(
682
                  'location' => 'query',
683
                  'type' => 'integer',
684
                ),
685
              ),
686
            ),'quickAdd' => array(
687
              'path' => 'calendars/{calendarId}/events/quickAdd',
688
              'httpMethod' => 'POST',
689
              'parameters' => array(
690
                'calendarId' => array(
691
                  'location' => 'path',
692
                  'type' => 'string',
693
                  'required' => true,
694
                ),
695
                'text' => array(
696
                  'location' => 'query',
697
                  'type' => 'string',
698
                  'required' => true,
699
                ),
700
                'sendNotifications' => array(
701
                  'location' => 'query',
702
                  'type' => 'boolean',
703
                ),
704
              ),
705
            ),'update' => array(
706
              'path' => 'calendars/{calendarId}/events/{eventId}',
707
              'httpMethod' => 'PUT',
708
              'parameters' => array(
709
                'calendarId' => array(
710
                  'location' => 'path',
711
                  'type' => 'string',
712
                  'required' => true,
713
                ),
714
                'eventId' => array(
715
                  'location' => 'path',
716
                  'type' => 'string',
717
                  'required' => true,
718
                ),
719
                'sendNotifications' => array(
720
                  'location' => 'query',
721
                  'type' => 'boolean',
722
                ),
723
                'alwaysIncludeEmail' => array(
724
                  'location' => 'query',
725
                  'type' => 'boolean',
726
                ),
727
                'supportsAttachments' => array(
728
                  'location' => 'query',
729
                  'type' => 'boolean',
730
                ),
731
                'maxAttendees' => array(
732
                  'location' => 'query',
733
                  'type' => 'integer',
734
                ),
735
              ),
736
            ),'watch' => array(
737
              'path' => 'calendars/{calendarId}/events/watch',
738
              'httpMethod' => 'POST',
739
              'parameters' => array(
740
                'calendarId' => array(
741
                  'location' => 'path',
742
                  'type' => 'string',
743
                  'required' => true,
744
                ),
745
                'orderBy' => array(
746
                  'location' => 'query',
747
                  'type' => 'string',
748
                ),
749
                'showHiddenInvitations' => array(
750
                  'location' => 'query',
751
                  'type' => 'boolean',
752
                ),
753
                'syncToken' => array(
754
                  'location' => 'query',
755
                  'type' => 'string',
756
                ),
757
                'showDeleted' => array(
758
                  'location' => 'query',
759
                  'type' => 'boolean',
760
                ),
761
                'iCalUID' => array(
762
                  'location' => 'query',
763
                  'type' => 'string',
764
                ),
765
                'updatedMin' => array(
766
                  'location' => 'query',
767
                  'type' => 'string',
768
                ),
769
                'singleEvents' => array(
770
                  'location' => 'query',
771
                  'type' => 'boolean',
772
                ),
773
                'timeMax' => array(
774
                  'location' => 'query',
775
                  'type' => 'string',
776
                ),
777
                'alwaysIncludeEmail' => array(
778
                  'location' => 'query',
779
                  'type' => 'boolean',
780
                ),
781
                'maxResults' => array(
782
                  'location' => 'query',
783
                  'type' => 'integer',
784
                ),
785
                'q' => array(
786
                  'location' => 'query',
787
                  'type' => 'string',
788
                ),
789
                'pageToken' => array(
790
                  'location' => 'query',
791
                  'type' => 'string',
792
                ),
793
                'timeMin' => array(
794
                  'location' => 'query',
795
                  'type' => 'string',
796
                ),
797
                'timeZone' => array(
798
                  'location' => 'query',
799
                  'type' => 'string',
800
                ),
801
                'privateExtendedProperty' => array(
802
                  'location' => 'query',
803
                  'type' => 'string',
804
                  'repeated' => true,
805
                ),
806
                'sharedExtendedProperty' => array(
807
                  'location' => 'query',
808
                  'type' => 'string',
809
                  'repeated' => true,
810
                ),
811
                'maxAttendees' => array(
812
                  'location' => 'query',
813
                  'type' => 'integer',
814
                ),
815
              ),
816
            ),
817
          )
818
        )
819
    );
820
    $this->freebusy = new Google_Service_Calendar_Freebusy_Resource(
821
        $this,
822
        $this->serviceName,
823
        'freebusy',
824
        array(
825
          'methods' => array(
826
            'query' => array(
827
              'path' => 'freeBusy',
828
              'httpMethod' => 'POST',
829
              'parameters' => array(),
830
            ),
831
          )
832
        )
833
    );
834
    $this->settings = new Google_Service_Calendar_Settings_Resource(
835
        $this,
836
        $this->serviceName,
837
        'settings',
838
        array(
839
          'methods' => array(
840
            'get' => array(
841
              'path' => 'users/me/settings/{setting}',
842
              'httpMethod' => 'GET',
843
              'parameters' => array(
844
                'setting' => array(
845
                  'location' => 'path',
846
                  'type' => 'string',
847
                  'required' => true,
848
                ),
849
              ),
850
            ),'list' => array(
851
              'path' => 'users/me/settings',
852
              'httpMethod' => 'GET',
853
              'parameters' => array(
854
                'pageToken' => array(
855
                  'location' => 'query',
856
                  'type' => 'string',
857
                ),
858
                'maxResults' => array(
859
                  'location' => 'query',
860
                  'type' => 'integer',
861
                ),
862
                'syncToken' => array(
863
                  'location' => 'query',
864
                  'type' => 'string',
865
                ),
866
              ),
867
            ),'watch' => array(
868
              'path' => 'users/me/settings/watch',
869
              'httpMethod' => 'POST',
870
              'parameters' => array(
871
                'pageToken' => array(
872
                  'location' => 'query',
873
                  'type' => 'string',
874
                ),
875
                'maxResults' => array(
876
                  'location' => 'query',
877
                  'type' => 'integer',
878
                ),
879
                'syncToken' => array(
880
                  'location' => 'query',
881
                  'type' => 'string',
882
                ),
883
              ),
884
            ),
885
          )
886
        )
887
    );
888
  }
889
}
890
891
892
/**
893
 * The "acl" collection of methods.
894
 * Typical usage is:
895
 *  <code>
896
 *   $calendarService = new Google_Service_Calendar(...);
897
 *   $acl = $calendarService->acl;
898
 *  </code>
899
 */
900 View Code Duplication
class Google_Service_Calendar_Acl_Resource extends Google_Service_Resource
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
901
{
902
903
  /**
904
   * Deletes an access control rule. (acl.delete)
905
   *
906
   * @param string $calendarId Calendar identifier.
907
   * @param string $ruleId ACL rule identifier.
908
   * @param array $optParams Optional parameters.
909
   */
910
  public function delete($calendarId, $ruleId, $optParams = array())
911
  {
912
    $params = array('calendarId' => $calendarId, 'ruleId' => $ruleId);
913
    $params = array_merge($params, $optParams);
914
    return $this->call('delete', array($params));
915
  }
916
917
  /**
918
   * Returns an access control rule. (acl.get)
919
   *
920
   * @param string $calendarId Calendar identifier.
921
   * @param string $ruleId ACL rule identifier.
922
   * @param array $optParams Optional parameters.
923
   * @return Google_Service_Calendar_AclRule
924
   */
925
  public function get($calendarId, $ruleId, $optParams = array())
926
  {
927
    $params = array('calendarId' => $calendarId, 'ruleId' => $ruleId);
928
    $params = array_merge($params, $optParams);
929
    return $this->call('get', array($params), "Google_Service_Calendar_AclRule");
930
  }
931
932
  /**
933
   * Creates an access control rule. (acl.insert)
934
   *
935
   * @param string $calendarId Calendar identifier.
936
   * @param Google_AclRule $postBody
937
   * @param array $optParams Optional parameters.
938
   * @return Google_Service_Calendar_AclRule
939
   */
940
  public function insert($calendarId, Google_Service_Calendar_AclRule $postBody, $optParams = array())
941
  {
942
    $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
943
    $params = array_merge($params, $optParams);
944
    return $this->call('insert', array($params), "Google_Service_Calendar_AclRule");
945
  }
946
947
  /**
948
   * Returns the rules in the access control list for the calendar. (acl.listAcl)
949
   *
950
   * @param string $calendarId Calendar identifier.
951
   * @param array $optParams Optional parameters.
952
   *
953
   * @opt_param string pageToken Token specifying which result page to return.
954
   * Optional.
955
   * @opt_param string syncToken Token obtained from the nextSyncToken field
956
   * returned on the last page of results from the previous list request. It makes
957
   * the result of this list request contain only entries that have changed since
958
   * then. All entries deleted since the previous list request will always be in
959
   * the result set and it is not allowed to set showDeleted to False. If the
960
   * syncToken expires, the server will respond with a 410 GONE response code and
961
   * the client should clear its storage and perform a full synchronization
962
   * without any syncToken. Learn more about incremental synchronization.
963
   * Optional. The default is to return all entries.
964
   * @opt_param int maxResults Maximum number of entries returned on one result
965
   * page. By default the value is 100 entries. The page size can never be larger
966
   * than 250 entries. Optional.
967
   * @opt_param bool showDeleted Whether to include deleted ACLs in the result.
968
   * Deleted ACLs are represented by role equal to "none". Deleted ACLs will
969
   * always be included if syncToken is provided. Optional. The default is False.
970
   * @return Google_Service_Calendar_Acl
971
   */
972
  public function listAcl($calendarId, $optParams = array())
973
  {
974
    $params = array('calendarId' => $calendarId);
975
    $params = array_merge($params, $optParams);
976
    return $this->call('list', array($params), "Google_Service_Calendar_Acl");
977
  }
978
979
  /**
980
   * Updates an access control rule. This method supports patch semantics.
981
   * (acl.patch)
982
   *
983
   * @param string $calendarId Calendar identifier.
984
   * @param string $ruleId ACL rule identifier.
985
   * @param Google_AclRule $postBody
986
   * @param array $optParams Optional parameters.
987
   * @return Google_Service_Calendar_AclRule
988
   */
989
  public function patch($calendarId, $ruleId, Google_Service_Calendar_AclRule $postBody, $optParams = array())
990
  {
991
    $params = array('calendarId' => $calendarId, 'ruleId' => $ruleId, 'postBody' => $postBody);
992
    $params = array_merge($params, $optParams);
993
    return $this->call('patch', array($params), "Google_Service_Calendar_AclRule");
994
  }
995
996
  /**
997
   * Updates an access control rule. (acl.update)
998
   *
999
   * @param string $calendarId Calendar identifier.
1000
   * @param string $ruleId ACL rule identifier.
1001
   * @param Google_AclRule $postBody
1002
   * @param array $optParams Optional parameters.
1003
   * @return Google_Service_Calendar_AclRule
1004
   */
1005
  public function update($calendarId, $ruleId, Google_Service_Calendar_AclRule $postBody, $optParams = array())
1006
  {
1007
    $params = array('calendarId' => $calendarId, 'ruleId' => $ruleId, 'postBody' => $postBody);
1008
    $params = array_merge($params, $optParams);
1009
    return $this->call('update', array($params), "Google_Service_Calendar_AclRule");
1010
  }
1011
1012
  /**
1013
   * Watch for changes to ACL resources. (acl.watch)
1014
   *
1015
   * @param string $calendarId Calendar identifier.
1016
   * @param Google_Channel $postBody
1017
   * @param array $optParams Optional parameters.
1018
   *
1019
   * @opt_param string pageToken Token specifying which result page to return.
1020
   * Optional.
1021
   * @opt_param string syncToken Token obtained from the nextSyncToken field
1022
   * returned on the last page of results from the previous list request. It makes
1023
   * the result of this list request contain only entries that have changed since
1024
   * then. All entries deleted since the previous list request will always be in
1025
   * the result set and it is not allowed to set showDeleted to False. If the
1026
   * syncToken expires, the server will respond with a 410 GONE response code and
1027
   * the client should clear its storage and perform a full synchronization
1028
   * without any syncToken. Learn more about incremental synchronization.
1029
   * Optional. The default is to return all entries.
1030
   * @opt_param int maxResults Maximum number of entries returned on one result
1031
   * page. By default the value is 100 entries. The page size can never be larger
1032
   * than 250 entries. Optional.
1033
   * @opt_param bool showDeleted Whether to include deleted ACLs in the result.
1034
   * Deleted ACLs are represented by role equal to "none". Deleted ACLs will
1035
   * always be included if syncToken is provided. Optional. The default is False.
1036
   * @return Google_Service_Calendar_Channel
1037
   */
1038
  public function watch($calendarId, Google_Service_Calendar_Channel $postBody, $optParams = array())
1039
  {
1040
    $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
1041
    $params = array_merge($params, $optParams);
1042
    return $this->call('watch', array($params), "Google_Service_Calendar_Channel");
1043
  }
1044
}
1045
1046
/**
1047
 * The "calendarList" collection of methods.
1048
 * Typical usage is:
1049
 *  <code>
1050
 *   $calendarService = new Google_Service_Calendar(...);
1051
 *   $calendarList = $calendarService->calendarList;
1052
 *  </code>
1053
 */
1054 View Code Duplication
class Google_Service_Calendar_CalendarList_Resource extends Google_Service_Resource
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
1055
{
1056
1057
  /**
1058
   * Deletes an entry on the user's calendar list. (calendarList.delete)
1059
   *
1060
   * @param string $calendarId Calendar identifier.
1061
   * @param array $optParams Optional parameters.
1062
   */
1063
  public function delete($calendarId, $optParams = array())
1064
  {
1065
    $params = array('calendarId' => $calendarId);
1066
    $params = array_merge($params, $optParams);
1067
    return $this->call('delete', array($params));
1068
  }
1069
1070
  /**
1071
   * Returns an entry on the user's calendar list. (calendarList.get)
1072
   *
1073
   * @param string $calendarId Calendar identifier.
1074
   * @param array $optParams Optional parameters.
1075
   * @return Google_Service_Calendar_CalendarListEntry
1076
   */
1077
  public function get($calendarId, $optParams = array())
1078
  {
1079
    $params = array('calendarId' => $calendarId);
1080
    $params = array_merge($params, $optParams);
1081
    return $this->call('get', array($params), "Google_Service_Calendar_CalendarListEntry");
1082
  }
1083
1084
  /**
1085
   * Adds an entry to the user's calendar list. (calendarList.insert)
1086
   *
1087
   * @param Google_CalendarListEntry $postBody
1088
   * @param array $optParams Optional parameters.
1089
   *
1090
   * @opt_param bool colorRgbFormat Whether to use the foregroundColor and
1091
   * backgroundColor fields to write the calendar colors (RGB). If this feature is
1092
   * used, the index-based colorId field will be set to the best matching option
1093
   * automatically. Optional. The default is False.
1094
   * @return Google_Service_Calendar_CalendarListEntry
1095
   */
1096
  public function insert(Google_Service_Calendar_CalendarListEntry $postBody, $optParams = array())
1097
  {
1098
    $params = array('postBody' => $postBody);
1099
    $params = array_merge($params, $optParams);
1100
    return $this->call('insert', array($params), "Google_Service_Calendar_CalendarListEntry");
1101
  }
1102
1103
  /**
1104
   * Returns entries on the user's calendar list. (calendarList.listCalendarList)
1105
   *
1106
   * @param array $optParams Optional parameters.
1107
   *
1108
   * @opt_param string syncToken Token obtained from the nextSyncToken field
1109
   * returned on the last page of results from the previous list request. It makes
1110
   * the result of this list request contain only entries that have changed since
1111
   * then. If only read-only fields such as calendar properties or ACLs have
1112
   * changed, the entry won't be returned. All entries deleted and hidden since
1113
   * the previous list request will always be in the result set and it is not
1114
   * allowed to set showDeleted neither showHidden to False. To ensure client
1115
   * state consistency minAccessRole query parameter cannot be specified together
1116
   * with nextSyncToken. If the syncToken expires, the server will respond with a
1117
   * 410 GONE response code and the client should clear its storage and perform a
1118
   * full synchronization without any syncToken. Learn more about incremental
1119
   * synchronization. Optional. The default is to return all entries.
1120
   * @opt_param bool showDeleted Whether to include deleted calendar list entries
1121
   * in the result. Optional. The default is False.
1122
   * @opt_param string minAccessRole The minimum access role for the user in the
1123
   * returned entries. Optional. The default is no restriction.
1124
   * @opt_param int maxResults Maximum number of entries returned on one result
1125
   * page. By default the value is 100 entries. The page size can never be larger
1126
   * than 250 entries. Optional.
1127
   * @opt_param string pageToken Token specifying which result page to return.
1128
   * Optional.
1129
   * @opt_param bool showHidden Whether to show hidden entries. Optional. The
1130
   * default is False.
1131
   * @return Google_Service_Calendar_CalendarList
1132
   */
1133
  public function listCalendarList($optParams = array())
1134
  {
1135
    $params = array();
1136
    $params = array_merge($params, $optParams);
1137
    return $this->call('list', array($params), "Google_Service_Calendar_CalendarList");
1138
  }
1139
1140
  /**
1141
   * Updates an entry on the user's calendar list. This method supports patch
1142
   * semantics. (calendarList.patch)
1143
   *
1144
   * @param string $calendarId Calendar identifier.
1145
   * @param Google_CalendarListEntry $postBody
1146
   * @param array $optParams Optional parameters.
1147
   *
1148
   * @opt_param bool colorRgbFormat Whether to use the foregroundColor and
1149
   * backgroundColor fields to write the calendar colors (RGB). If this feature is
1150
   * used, the index-based colorId field will be set to the best matching option
1151
   * automatically. Optional. The default is False.
1152
   * @return Google_Service_Calendar_CalendarListEntry
1153
   */
1154
  public function patch($calendarId, Google_Service_Calendar_CalendarListEntry $postBody, $optParams = array())
1155
  {
1156
    $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
1157
    $params = array_merge($params, $optParams);
1158
    return $this->call('patch', array($params), "Google_Service_Calendar_CalendarListEntry");
1159
  }
1160
1161
  /**
1162
   * Updates an entry on the user's calendar list. (calendarList.update)
1163
   *
1164
   * @param string $calendarId Calendar identifier.
1165
   * @param Google_CalendarListEntry $postBody
1166
   * @param array $optParams Optional parameters.
1167
   *
1168
   * @opt_param bool colorRgbFormat Whether to use the foregroundColor and
1169
   * backgroundColor fields to write the calendar colors (RGB). If this feature is
1170
   * used, the index-based colorId field will be set to the best matching option
1171
   * automatically. Optional. The default is False.
1172
   * @return Google_Service_Calendar_CalendarListEntry
1173
   */
1174
  public function update($calendarId, Google_Service_Calendar_CalendarListEntry $postBody, $optParams = array())
1175
  {
1176
    $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
1177
    $params = array_merge($params, $optParams);
1178
    return $this->call('update', array($params), "Google_Service_Calendar_CalendarListEntry");
1179
  }
1180
1181
  /**
1182
   * Watch for changes to CalendarList resources. (calendarList.watch)
1183
   *
1184
   * @param Google_Channel $postBody
1185
   * @param array $optParams Optional parameters.
1186
   *
1187
   * @opt_param string syncToken Token obtained from the nextSyncToken field
1188
   * returned on the last page of results from the previous list request. It makes
1189
   * the result of this list request contain only entries that have changed since
1190
   * then. If only read-only fields such as calendar properties or ACLs have
1191
   * changed, the entry won't be returned. All entries deleted and hidden since
1192
   * the previous list request will always be in the result set and it is not
1193
   * allowed to set showDeleted neither showHidden to False. To ensure client
1194
   * state consistency minAccessRole query parameter cannot be specified together
1195
   * with nextSyncToken. If the syncToken expires, the server will respond with a
1196
   * 410 GONE response code and the client should clear its storage and perform a
1197
   * full synchronization without any syncToken. Learn more about incremental
1198
   * synchronization. Optional. The default is to return all entries.
1199
   * @opt_param bool showDeleted Whether to include deleted calendar list entries
1200
   * in the result. Optional. The default is False.
1201
   * @opt_param string minAccessRole The minimum access role for the user in the
1202
   * returned entries. Optional. The default is no restriction.
1203
   * @opt_param int maxResults Maximum number of entries returned on one result
1204
   * page. By default the value is 100 entries. The page size can never be larger
1205
   * than 250 entries. Optional.
1206
   * @opt_param string pageToken Token specifying which result page to return.
1207
   * Optional.
1208
   * @opt_param bool showHidden Whether to show hidden entries. Optional. The
1209
   * default is False.
1210
   * @return Google_Service_Calendar_Channel
1211
   */
1212
  public function watch(Google_Service_Calendar_Channel $postBody, $optParams = array())
1213
  {
1214
    $params = array('postBody' => $postBody);
1215
    $params = array_merge($params, $optParams);
1216
    return $this->call('watch', array($params), "Google_Service_Calendar_Channel");
1217
  }
1218
}
1219
1220
/**
1221
 * The "calendars" collection of methods.
1222
 * Typical usage is:
1223
 *  <code>
1224
 *   $calendarService = new Google_Service_Calendar(...);
1225
 *   $calendars = $calendarService->calendars;
1226
 *  </code>
1227
 */
1228 View Code Duplication
class Google_Service_Calendar_Calendars_Resource extends Google_Service_Resource
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
1229
{
1230
1231
  /**
1232
   * Clears a primary calendar. This operation deletes all events associated with
1233
   * the primary calendar of an account. (calendars.clear)
1234
   *
1235
   * @param string $calendarId Calendar identifier.
1236
   * @param array $optParams Optional parameters.
1237
   */
1238
  public function clear($calendarId, $optParams = array())
1239
  {
1240
    $params = array('calendarId' => $calendarId);
1241
    $params = array_merge($params, $optParams);
1242
    return $this->call('clear', array($params));
1243
  }
1244
1245
  /**
1246
   * Deletes a secondary calendar. Use calendars.clear for clearing all events on
1247
   * primary calendars. (calendars.delete)
1248
   *
1249
   * @param string $calendarId Calendar identifier.
1250
   * @param array $optParams Optional parameters.
1251
   */
1252
  public function delete($calendarId, $optParams = array())
1253
  {
1254
    $params = array('calendarId' => $calendarId);
1255
    $params = array_merge($params, $optParams);
1256
    return $this->call('delete', array($params));
1257
  }
1258
1259
  /**
1260
   * Returns metadata for a calendar. (calendars.get)
1261
   *
1262
   * @param string $calendarId Calendar identifier.
1263
   * @param array $optParams Optional parameters.
1264
   * @return Google_Service_Calendar_Calendar
1265
   */
1266
  public function get($calendarId, $optParams = array())
1267
  {
1268
    $params = array('calendarId' => $calendarId);
1269
    $params = array_merge($params, $optParams);
1270
    return $this->call('get', array($params), "Google_Service_Calendar_Calendar");
1271
  }
1272
1273
  /**
1274
   * Creates a secondary calendar. (calendars.insert)
1275
   *
1276
   * @param Google_Calendar $postBody
1277
   * @param array $optParams Optional parameters.
1278
   * @return Google_Service_Calendar_Calendar
1279
   */
1280
  public function insert(Google_Service_Calendar_Calendar $postBody, $optParams = array())
1281
  {
1282
    $params = array('postBody' => $postBody);
1283
    $params = array_merge($params, $optParams);
1284
    return $this->call('insert', array($params), "Google_Service_Calendar_Calendar");
1285
  }
1286
1287
  /**
1288
   * Updates metadata for a calendar. This method supports patch semantics.
1289
   * (calendars.patch)
1290
   *
1291
   * @param string $calendarId Calendar identifier.
1292
   * @param Google_Calendar $postBody
1293
   * @param array $optParams Optional parameters.
1294
   * @return Google_Service_Calendar_Calendar
1295
   */
1296
  public function patch($calendarId, Google_Service_Calendar_Calendar $postBody, $optParams = array())
1297
  {
1298
    $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
1299
    $params = array_merge($params, $optParams);
1300
    return $this->call('patch', array($params), "Google_Service_Calendar_Calendar");
1301
  }
1302
1303
  /**
1304
   * Updates metadata for a calendar. (calendars.update)
1305
   *
1306
   * @param string $calendarId Calendar identifier.
1307
   * @param Google_Calendar $postBody
1308
   * @param array $optParams Optional parameters.
1309
   * @return Google_Service_Calendar_Calendar
1310
   */
1311
  public function update($calendarId, Google_Service_Calendar_Calendar $postBody, $optParams = array())
1312
  {
1313
    $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
1314
    $params = array_merge($params, $optParams);
1315
    return $this->call('update', array($params), "Google_Service_Calendar_Calendar");
1316
  }
1317
}
1318
1319
/**
1320
 * The "channels" collection of methods.
1321
 * Typical usage is:
1322
 *  <code>
1323
 *   $calendarService = new Google_Service_Calendar(...);
1324
 *   $channels = $calendarService->channels;
1325
 *  </code>
1326
 */
1327 View Code Duplication
class Google_Service_Calendar_Channels_Resource extends Google_Service_Resource
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
1328
{
1329
1330
  /**
1331
   * Stop watching resources through this channel (channels.stop)
1332
   *
1333
   * @param Google_Channel $postBody
1334
   * @param array $optParams Optional parameters.
1335
   */
1336
  public function stop(Google_Service_Calendar_Channel $postBody, $optParams = array())
1337
  {
1338
    $params = array('postBody' => $postBody);
1339
    $params = array_merge($params, $optParams);
1340
    return $this->call('stop', array($params));
1341
  }
1342
}
1343
1344
/**
1345
 * The "colors" collection of methods.
1346
 * Typical usage is:
1347
 *  <code>
1348
 *   $calendarService = new Google_Service_Calendar(...);
1349
 *   $colors = $calendarService->colors;
1350
 *  </code>
1351
 */
1352 View Code Duplication
class Google_Service_Calendar_Colors_Resource extends Google_Service_Resource
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
1353
{
1354
1355
  /**
1356
   * Returns the color definitions for calendars and events. (colors.get)
1357
   *
1358
   * @param array $optParams Optional parameters.
1359
   * @return Google_Service_Calendar_Colors
1360
   */
1361
  public function get($optParams = array())
1362
  {
1363
    $params = array();
1364
    $params = array_merge($params, $optParams);
1365
    return $this->call('get', array($params), "Google_Service_Calendar_Colors");
1366
  }
1367
}
1368
1369
/**
1370
 * The "events" collection of methods.
1371
 * Typical usage is:
1372
 *  <code>
1373
 *   $calendarService = new Google_Service_Calendar(...);
1374
 *   $events = $calendarService->events;
1375
 *  </code>
1376
 */
1377
class Google_Service_Calendar_Events_Resource extends Google_Service_Resource
1378
{
1379
1380
  /**
1381
   * Deletes an event. (events.delete)
1382
   *
1383
   * @param string $calendarId Calendar identifier.
1384
   * @param string $eventId Event identifier.
1385
   * @param array $optParams Optional parameters.
1386
   *
1387
   * @opt_param bool sendNotifications Whether to send notifications about the
1388
   * deletion of the event. Optional. The default is False.
1389
   */
1390
  public function delete($calendarId, $eventId, $optParams = array())
1391
  {
1392
    $params = array('calendarId' => $calendarId, 'eventId' => $eventId);
1393
    $params = array_merge($params, $optParams);
1394
    return $this->call('delete', array($params));
1395
  }
1396
1397
  /**
1398
   * Returns an event. (events.get)
1399
   *
1400
   * @param string $calendarId Calendar identifier.
1401
   * @param string $eventId Event identifier.
1402
   * @param array $optParams Optional parameters.
1403
   *
1404
   * @opt_param string timeZone Time zone used in the response. Optional. The
1405
   * default is the time zone of the calendar.
1406
   * @opt_param bool alwaysIncludeEmail Whether to always include a value in the
1407
   * email field for the organizer, creator and attendees, even if no real email
1408
   * is available (i.e. a generated, non-working value will be provided). The use
1409
   * of this option is discouraged and should only be used by clients which cannot
1410
   * handle the absence of an email address value in the mentioned places.
1411
   * Optional. The default is False.
1412
   * @opt_param int maxAttendees The maximum number of attendees to include in the
1413
   * response. If there are more than the specified number of attendees, only the
1414
   * participant is returned. Optional.
1415
   * @return Google_Service_Calendar_Event
1416
   */
1417
  public function get($calendarId, $eventId, $optParams = array())
1418
  {
1419
    $params = array('calendarId' => $calendarId, 'eventId' => $eventId);
1420
    $params = array_merge($params, $optParams);
1421
    return $this->call('get', array($params), "Google_Service_Calendar_Event");
1422
  }
1423
1424
  /**
1425
   * Imports an event. This operation is used to add a private copy of an existing
1426
   * event to a calendar. (events.import)
1427
   *
1428
   * @param string $calendarId Calendar identifier.
1429
   * @param Google_Event $postBody
1430
   * @param array $optParams Optional parameters.
1431
   *
1432
   * @opt_param bool supportsAttachments Whether API client performing operation
1433
   * supports event attachments. Optional. The default is False.
1434
   * @return Google_Service_Calendar_Event
1435
   */
1436
  public function import($calendarId, Google_Service_Calendar_Event $postBody, $optParams = array())
1437
  {
1438
    $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
1439
    $params = array_merge($params, $optParams);
1440
    return $this->call('import', array($params), "Google_Service_Calendar_Event");
1441
  }
1442
1443
  /**
1444
   * Creates an event. (events.insert)
1445
   *
1446
   * @param string $calendarId Calendar identifier.
1447
   * @param Google_Event $postBody
1448
   * @param array $optParams Optional parameters.
1449
   *
1450
   * @opt_param bool supportsAttachments Whether API client performing operation
1451
   * supports event attachments. Optional. The default is False.
1452
   * @opt_param bool sendNotifications Whether to send notifications about the
1453
   * creation of the new event. Optional. The default is False.
1454
   * @opt_param int maxAttendees The maximum number of attendees to include in the
1455
   * response. If there are more than the specified number of attendees, only the
1456
   * participant is returned. Optional.
1457
   * @return Google_Service_Calendar_Event
1458
   */
1459
  public function insert($calendarId, Google_Service_Calendar_Event $postBody, $optParams = array())
1460
  {
1461
    $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
1462
    $params = array_merge($params, $optParams);
1463
    return $this->call('insert', array($params), "Google_Service_Calendar_Event");
1464
  }
1465
1466
  /**
1467
   * Returns instances of the specified recurring event. (events.instances)
1468
   *
1469
   * @param string $calendarId Calendar identifier.
1470
   * @param string $eventId Recurring event identifier.
1471
   * @param array $optParams Optional parameters.
1472
   *
1473
   * @opt_param bool showDeleted Whether to include deleted events (with status
1474
   * equals "cancelled") in the result. Cancelled instances of recurring events
1475
   * will still be included if singleEvents is False. Optional. The default is
1476
   * False.
1477
   * @opt_param string timeMax Upper bound (exclusive) for an event's start time
1478
   * to filter by. Optional. The default is not to filter by start time.
1479
   * @opt_param bool alwaysIncludeEmail Whether to always include a value in the
1480
   * email field for the organizer, creator and attendees, even if no real email
1481
   * is available (i.e. a generated, non-working value will be provided). The use
1482
   * of this option is discouraged and should only be used by clients which cannot
1483
   * handle the absence of an email address value in the mentioned places.
1484
   * Optional. The default is False.
1485
   * @opt_param int maxResults Maximum number of events returned on one result
1486
   * page. By default the value is 250 events. The page size can never be larger
1487
   * than 2500 events. Optional.
1488
   * @opt_param string pageToken Token specifying which result page to return.
1489
   * Optional.
1490
   * @opt_param string timeMin Lower bound (inclusive) for an event's end time to
1491
   * filter by. Optional. The default is not to filter by end time.
1492
   * @opt_param string timeZone Time zone used in the response. Optional. The
1493
   * default is the time zone of the calendar.
1494
   * @opt_param string originalStart The original start time of the instance in
1495
   * the result. Optional.
1496
   * @opt_param int maxAttendees The maximum number of attendees to include in the
1497
   * response. If there are more than the specified number of attendees, only the
1498
   * participant is returned. Optional.
1499
   * @return Google_Service_Calendar_Events
1500
   */
1501
  public function instances($calendarId, $eventId, $optParams = array())
1502
  {
1503
    $params = array('calendarId' => $calendarId, 'eventId' => $eventId);
1504
    $params = array_merge($params, $optParams);
1505
    return $this->call('instances', array($params), "Google_Service_Calendar_Events");
1506
  }
1507
1508
  /**
1509
   * Returns events on the specified calendar. (events.listEvents)
1510
   *
1511
   * @param string $calendarId Calendar identifier.
1512
   * @param array $optParams Optional parameters.
1513
   *
1514
   * @opt_param string orderBy The order of the events returned in the result.
1515
   * Optional. The default is an unspecified, stable order.
1516
   * @opt_param bool showHiddenInvitations Whether to include hidden invitations
1517
   * in the result. Optional. The default is False.
1518
   * @opt_param string syncToken Token obtained from the nextSyncToken field
1519
   * returned on the last page of results from the previous list request. It makes
1520
   * the result of this list request contain only entries that have changed since
1521
   * then. All events deleted since the previous list request will always be in
1522
   * the result set and it is not allowed to set showDeleted to False. There are
1523
   * several query parameters that cannot be specified together with nextSyncToken
1524
   * to ensure consistency of the client state.
1525
   *
1526
   * These are:  - iCalUID  - orderBy  - privateExtendedProperty  - q  -
1527
   * sharedExtendedProperty  - timeMin  - timeMax  - updatedMin If the syncToken
1528
   * expires, the server will respond with a 410 GONE response code and the client
1529
   * should clear its storage and perform a full synchronization without any
1530
   * syncToken. Learn more about incremental synchronization. Optional. The
1531
   * default is to return all entries.
1532
   * @opt_param bool showDeleted Whether to include deleted events (with status
1533
   * equals "cancelled") in the result. Cancelled instances of recurring events
1534
   * (but not the underlying recurring event) will still be included if
1535
   * showDeleted and singleEvents are both False. If showDeleted and singleEvents
1536
   * are both True, only single instances of deleted events (but not the
1537
   * underlying recurring events) are returned. Optional. The default is False.
1538
   * @opt_param string iCalUID Specifies event ID in the iCalendar format to be
1539
   * included in the response. Optional.
1540
   * @opt_param string updatedMin Lower bound for an event's last modification
1541
   * time (as a RFC 3339 timestamp) to filter by. When specified, entries deleted
1542
   * since this time will always be included regardless of showDeleted. Optional.
1543
   * The default is not to filter by last modification time.
1544
   * @opt_param bool singleEvents Whether to expand recurring events into
1545
   * instances and only return single one-off events and instances of recurring
1546
   * events, but not the underlying recurring events themselves. Optional. The
1547
   * default is False.
1548
   * @opt_param string timeMax Upper bound (exclusive) for an event's start time
1549
   * to filter by. Optional. The default is not to filter by start time.
1550
   * @opt_param bool alwaysIncludeEmail Whether to always include a value in the
1551
   * email field for the organizer, creator and attendees, even if no real email
1552
   * is available (i.e. a generated, non-working value will be provided). The use
1553
   * of this option is discouraged and should only be used by clients which cannot
1554
   * handle the absence of an email address value in the mentioned places.
1555
   * Optional. The default is False.
1556
   * @opt_param int maxResults Maximum number of events returned on one result
1557
   * page. By default the value is 250 events. The page size can never be larger
1558
   * than 2500 events. Optional.
1559
   * @opt_param string q Free text search terms to find events that match these
1560
   * terms in any field, except for extended properties. Optional.
1561
   * @opt_param string pageToken Token specifying which result page to return.
1562
   * Optional.
1563
   * @opt_param string timeMin Lower bound (inclusive) for an event's end time to
1564
   * filter by. Optional. The default is not to filter by end time.
1565
   * @opt_param string timeZone Time zone used in the response. Optional. The
1566
   * default is the time zone of the calendar.
1567
   * @opt_param string privateExtendedProperty Extended properties constraint
1568
   * specified as propertyName=value. Matches only private properties. This
1569
   * parameter might be repeated multiple times to return events that match all
1570
   * given constraints.
1571
   * @opt_param string sharedExtendedProperty Extended properties constraint
1572
   * specified as propertyName=value. Matches only shared properties. This
1573
   * parameter might be repeated multiple times to return events that match all
1574
   * given constraints.
1575
   * @opt_param int maxAttendees The maximum number of attendees to include in the
1576
   * response. If there are more than the specified number of attendees, only the
1577
   * participant is returned. Optional.
1578
   * @return Google_Service_Calendar_Events
1579
   */
1580
  public function listEvents($calendarId, $optParams = array())
1581
  {
1582
    $params = array('calendarId' => $calendarId);
1583
    $params = array_merge($params, $optParams);
1584
    return $this->call('list', array($params), "Google_Service_Calendar_Events");
1585
  }
1586
1587
  /**
1588
   * Moves an event to another calendar, i.e. changes an event's organizer.
1589
   * (events.move)
1590
   *
1591
   * @param string $calendarId Calendar identifier of the source calendar where
1592
   * the event currently is on.
1593
   * @param string $eventId Event identifier.
1594
   * @param string $destination Calendar identifier of the target calendar where
1595
   * the event is to be moved to.
1596
   * @param array $optParams Optional parameters.
1597
   *
1598
   * @opt_param bool sendNotifications Whether to send notifications about the
1599
   * change of the event's organizer. Optional. The default is False.
1600
   * @return Google_Service_Calendar_Event
1601
   */
1602
  public function move($calendarId, $eventId, $destination, $optParams = array())
1603
  {
1604
    $params = array('calendarId' => $calendarId, 'eventId' => $eventId, 'destination' => $destination);
1605
    $params = array_merge($params, $optParams);
1606
    return $this->call('move', array($params), "Google_Service_Calendar_Event");
1607
  }
1608
1609
  /**
1610
   * Updates an event. This method supports patch semantics. (events.patch)
1611
   *
1612
   * @param string $calendarId Calendar identifier.
1613
   * @param string $eventId Event identifier.
1614
   * @param Google_Event $postBody
1615
   * @param array $optParams Optional parameters.
1616
   *
1617
   * @opt_param bool sendNotifications Whether to send notifications about the
1618
   * event update (e.g. attendee's responses, title changes, etc.). Optional. The
1619
   * default is False.
1620
   * @opt_param bool alwaysIncludeEmail Whether to always include a value in the
1621
   * email field for the organizer, creator and attendees, even if no real email
1622
   * is available (i.e. a generated, non-working value will be provided). The use
1623
   * of this option is discouraged and should only be used by clients which cannot
1624
   * handle the absence of an email address value in the mentioned places.
1625
   * Optional. The default is False.
1626
   * @opt_param bool supportsAttachments Whether API client performing operation
1627
   * supports event attachments. Optional. The default is False.
1628
   * @opt_param int maxAttendees The maximum number of attendees to include in the
1629
   * response. If there are more than the specified number of attendees, only the
1630
   * participant is returned. Optional.
1631
   * @return Google_Service_Calendar_Event
1632
   */
1633
  public function patch($calendarId, $eventId, Google_Service_Calendar_Event $postBody, $optParams = array())
1634
  {
1635
    $params = array('calendarId' => $calendarId, 'eventId' => $eventId, 'postBody' => $postBody);
1636
    $params = array_merge($params, $optParams);
1637
    return $this->call('patch', array($params), "Google_Service_Calendar_Event");
1638
  }
1639
1640
  /**
1641
   * Creates an event based on a simple text string. (events.quickAdd)
1642
   *
1643
   * @param string $calendarId Calendar identifier.
1644
   * @param string $text The text describing the event to be created.
1645
   * @param array $optParams Optional parameters.
1646
   *
1647
   * @opt_param bool sendNotifications Whether to send notifications about the
1648
   * creation of the event. Optional. The default is False.
1649
   * @return Google_Service_Calendar_Event
1650
   */
1651
  public function quickAdd($calendarId, $text, $optParams = array())
1652
  {
1653
    $params = array('calendarId' => $calendarId, 'text' => $text);
1654
    $params = array_merge($params, $optParams);
1655
    return $this->call('quickAdd', array($params), "Google_Service_Calendar_Event");
1656
  }
1657
1658
  /**
1659
   * Updates an event. (events.update)
1660
   *
1661
   * @param string $calendarId Calendar identifier.
1662
   * @param string $eventId Event identifier.
1663
   * @param Google_Event $postBody
1664
   * @param array $optParams Optional parameters.
1665
   *
1666
   * @opt_param bool sendNotifications Whether to send notifications about the
1667
   * event update (e.g. attendee's responses, title changes, etc.). Optional. The
1668
   * default is False.
1669
   * @opt_param bool alwaysIncludeEmail Whether to always include a value in the
1670
   * email field for the organizer, creator and attendees, even if no real email
1671
   * is available (i.e. a generated, non-working value will be provided). The use
1672
   * of this option is discouraged and should only be used by clients which cannot
1673
   * handle the absence of an email address value in the mentioned places.
1674
   * Optional. The default is False.
1675
   * @opt_param bool supportsAttachments Whether API client performing operation
1676
   * supports event attachments. Optional. The default is False.
1677
   * @opt_param int maxAttendees The maximum number of attendees to include in the
1678
   * response. If there are more than the specified number of attendees, only the
1679
   * participant is returned. Optional.
1680
   * @return Google_Service_Calendar_Event
1681
   */
1682
  public function update($calendarId, $eventId, Google_Service_Calendar_Event $postBody, $optParams = array())
1683
  {
1684
    $params = array('calendarId' => $calendarId, 'eventId' => $eventId, 'postBody' => $postBody);
1685
    $params = array_merge($params, $optParams);
1686
    return $this->call('update', array($params), "Google_Service_Calendar_Event");
1687
  }
1688
1689
  /**
1690
   * Watch for changes to Events resources. (events.watch)
1691
   *
1692
   * @param string $calendarId Calendar identifier.
1693
   * @param Google_Channel $postBody
1694
   * @param array $optParams Optional parameters.
1695
   *
1696
   * @opt_param string orderBy The order of the events returned in the result.
1697
   * Optional. The default is an unspecified, stable order.
1698
   * @opt_param bool showHiddenInvitations Whether to include hidden invitations
1699
   * in the result. Optional. The default is False.
1700
   * @opt_param string syncToken Token obtained from the nextSyncToken field
1701
   * returned on the last page of results from the previous list request. It makes
1702
   * the result of this list request contain only entries that have changed since
1703
   * then. All events deleted since the previous list request will always be in
1704
   * the result set and it is not allowed to set showDeleted to False. There are
1705
   * several query parameters that cannot be specified together with nextSyncToken
1706
   * to ensure consistency of the client state.
1707
   *
1708
   * These are:  - iCalUID  - orderBy  - privateExtendedProperty  - q  -
1709
   * sharedExtendedProperty  - timeMin  - timeMax  - updatedMin If the syncToken
1710
   * expires, the server will respond with a 410 GONE response code and the client
1711
   * should clear its storage and perform a full synchronization without any
1712
   * syncToken. Learn more about incremental synchronization. Optional. The
1713
   * default is to return all entries.
1714
   * @opt_param bool showDeleted Whether to include deleted events (with status
1715
   * equals "cancelled") in the result. Cancelled instances of recurring events
1716
   * (but not the underlying recurring event) will still be included if
1717
   * showDeleted and singleEvents are both False. If showDeleted and singleEvents
1718
   * are both True, only single instances of deleted events (but not the
1719
   * underlying recurring events) are returned. Optional. The default is False.
1720
   * @opt_param string iCalUID Specifies event ID in the iCalendar format to be
1721
   * included in the response. Optional.
1722
   * @opt_param string updatedMin Lower bound for an event's last modification
1723
   * time (as a RFC 3339 timestamp) to filter by. When specified, entries deleted
1724
   * since this time will always be included regardless of showDeleted. Optional.
1725
   * The default is not to filter by last modification time.
1726
   * @opt_param bool singleEvents Whether to expand recurring events into
1727
   * instances and only return single one-off events and instances of recurring
1728
   * events, but not the underlying recurring events themselves. Optional. The
1729
   * default is False.
1730
   * @opt_param string timeMax Upper bound (exclusive) for an event's start time
1731
   * to filter by. Optional. The default is not to filter by start time.
1732
   * @opt_param bool alwaysIncludeEmail Whether to always include a value in the
1733
   * email field for the organizer, creator and attendees, even if no real email
1734
   * is available (i.e. a generated, non-working value will be provided). The use
1735
   * of this option is discouraged and should only be used by clients which cannot
1736
   * handle the absence of an email address value in the mentioned places.
1737
   * Optional. The default is False.
1738
   * @opt_param int maxResults Maximum number of events returned on one result
1739
   * page. By default the value is 250 events. The page size can never be larger
1740
   * than 2500 events. Optional.
1741
   * @opt_param string q Free text search terms to find events that match these
1742
   * terms in any field, except for extended properties. Optional.
1743
   * @opt_param string pageToken Token specifying which result page to return.
1744
   * Optional.
1745
   * @opt_param string timeMin Lower bound (inclusive) for an event's end time to
1746
   * filter by. Optional. The default is not to filter by end time.
1747
   * @opt_param string timeZone Time zone used in the response. Optional. The
1748
   * default is the time zone of the calendar.
1749
   * @opt_param string privateExtendedProperty Extended properties constraint
1750
   * specified as propertyName=value. Matches only private properties. This
1751
   * parameter might be repeated multiple times to return events that match all
1752
   * given constraints.
1753
   * @opt_param string sharedExtendedProperty Extended properties constraint
1754
   * specified as propertyName=value. Matches only shared properties. This
1755
   * parameter might be repeated multiple times to return events that match all
1756
   * given constraints.
1757
   * @opt_param int maxAttendees The maximum number of attendees to include in the
1758
   * response. If there are more than the specified number of attendees, only the
1759
   * participant is returned. Optional.
1760
   * @return Google_Service_Calendar_Channel
1761
   */
1762
  public function watch($calendarId, Google_Service_Calendar_Channel $postBody, $optParams = array())
1763
  {
1764
    $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
1765
    $params = array_merge($params, $optParams);
1766
    return $this->call('watch', array($params), "Google_Service_Calendar_Channel");
1767
  }
1768
}
1769
1770
/**
1771
 * The "freebusy" collection of methods.
1772
 * Typical usage is:
1773
 *  <code>
1774
 *   $calendarService = new Google_Service_Calendar(...);
1775
 *   $freebusy = $calendarService->freebusy;
1776
 *  </code>
1777
 */
1778
class Google_Service_Calendar_Freebusy_Resource extends Google_Service_Resource
1779
{
1780
1781
  /**
1782
   * Returns free/busy information for a set of calendars. (freebusy.query)
1783
   *
1784
   * @param Google_FreeBusyRequest $postBody
1785
   * @param array $optParams Optional parameters.
1786
   * @return Google_Service_Calendar_FreeBusyResponse
1787
   */
1788
  public function query(Google_Service_Calendar_FreeBusyRequest $postBody, $optParams = array())
1789
  {
1790
    $params = array('postBody' => $postBody);
1791
    $params = array_merge($params, $optParams);
1792
    return $this->call('query', array($params), "Google_Service_Calendar_FreeBusyResponse");
1793
  }
1794
}
1795
1796
/**
1797
 * The "settings" collection of methods.
1798
 * Typical usage is:
1799
 *  <code>
1800
 *   $calendarService = new Google_Service_Calendar(...);
1801
 *   $settings = $calendarService->settings;
1802
 *  </code>
1803
 */
1804
class Google_Service_Calendar_Settings_Resource extends Google_Service_Resource
1805
{
1806
1807
  /**
1808
   * Returns a single user setting. (settings.get)
1809
   *
1810
   * @param string $setting The id of the user setting.
1811
   * @param array $optParams Optional parameters.
1812
   * @return Google_Service_Calendar_Setting
1813
   */
1814
  public function get($setting, $optParams = array())
1815
  {
1816
    $params = array('setting' => $setting);
1817
    $params = array_merge($params, $optParams);
1818
    return $this->call('get', array($params), "Google_Service_Calendar_Setting");
1819
  }
1820
1821
  /**
1822
   * Returns all user settings for the authenticated user. (settings.listSettings)
1823
   *
1824
   * @param array $optParams Optional parameters.
1825
   *
1826
   * @opt_param string pageToken Token specifying which result page to return.
1827
   * Optional.
1828
   * @opt_param int maxResults Maximum number of entries returned on one result
1829
   * page. By default the value is 100 entries. The page size can never be larger
1830
   * than 250 entries. Optional.
1831
   * @opt_param string syncToken Token obtained from the nextSyncToken field
1832
   * returned on the last page of results from the previous list request. It makes
1833
   * the result of this list request contain only entries that have changed since
1834
   * then. If the syncToken expires, the server will respond with a 410 GONE
1835
   * response code and the client should clear its storage and perform a full
1836
   * synchronization without any syncToken. Learn more about incremental
1837
   * synchronization. Optional. The default is to return all entries.
1838
   * @return Google_Service_Calendar_Settings
1839
   */
1840
  public function listSettings($optParams = array())
1841
  {
1842
    $params = array();
1843
    $params = array_merge($params, $optParams);
1844
    return $this->call('list', array($params), "Google_Service_Calendar_Settings");
1845
  }
1846
1847
  /**
1848
   * Watch for changes to Settings resources. (settings.watch)
1849
   *
1850
   * @param Google_Channel $postBody
1851
   * @param array $optParams Optional parameters.
1852
   *
1853
   * @opt_param string pageToken Token specifying which result page to return.
1854
   * Optional.
1855
   * @opt_param int maxResults Maximum number of entries returned on one result
1856
   * page. By default the value is 100 entries. The page size can never be larger
1857
   * than 250 entries. Optional.
1858
   * @opt_param string syncToken Token obtained from the nextSyncToken field
1859
   * returned on the last page of results from the previous list request. It makes
1860
   * the result of this list request contain only entries that have changed since
1861
   * then. If the syncToken expires, the server will respond with a 410 GONE
1862
   * response code and the client should clear its storage and perform a full
1863
   * synchronization without any syncToken. Learn more about incremental
1864
   * synchronization. Optional. The default is to return all entries.
1865
   * @return Google_Service_Calendar_Channel
1866
   */
1867
  public function watch(Google_Service_Calendar_Channel $postBody, $optParams = array())
1868
  {
1869
    $params = array('postBody' => $postBody);
1870
    $params = array_merge($params, $optParams);
1871
    return $this->call('watch', array($params), "Google_Service_Calendar_Channel");
1872
  }
1873
}
1874
1875
1876
1877
1878 View Code Duplication
class Google_Service_Calendar_Acl extends Google_Collection
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
1879
{
1880
  protected $collection_key = 'items';
1881
  protected $internal_gapi_mappings = array(
1882
  );
1883
  public $etag;
1884
  protected $itemsType = 'Google_Service_Calendar_AclRule';
1885
  protected $itemsDataType = 'array';
1886
  public $kind;
1887
  public $nextPageToken;
1888
  public $nextSyncToken;
1889
1890
1891
  public function setEtag($etag)
1892
  {
1893
    $this->etag = $etag;
1894
  }
1895
  public function getEtag()
1896
  {
1897
    return $this->etag;
1898
  }
1899
  public function setItems($items)
1900
  {
1901
    $this->items = $items;
0 ignored issues
show
Bug introduced by
The property items does not exist. Did you maybe forget to declare it?

In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:

class MyClass { }

$x = new MyClass();
$x->foo = true;

Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion:

class MyClass {
    public $foo;
}

$x = new MyClass();
$x->foo = true;
Loading history...
1902
  }
1903
  public function getItems()
1904
  {
1905
    return $this->items;
1906
  }
1907
  public function setKind($kind)
1908
  {
1909
    $this->kind = $kind;
1910
  }
1911
  public function getKind()
1912
  {
1913
    return $this->kind;
1914
  }
1915
  public function setNextPageToken($nextPageToken)
1916
  {
1917
    $this->nextPageToken = $nextPageToken;
1918
  }
1919
  public function getNextPageToken()
1920
  {
1921
    return $this->nextPageToken;
1922
  }
1923
  public function setNextSyncToken($nextSyncToken)
1924
  {
1925
    $this->nextSyncToken = $nextSyncToken;
1926
  }
1927
  public function getNextSyncToken()
1928
  {
1929
    return $this->nextSyncToken;
1930
  }
1931
}
1932
1933
class Google_Service_Calendar_AclRule extends Google_Model
1934
{
1935
  protected $internal_gapi_mappings = array(
1936
  );
1937
  public $etag;
1938
  public $id;
1939
  public $kind;
1940
  public $role;
1941
  protected $scopeType = 'Google_Service_Calendar_AclRuleScope';
1942
  protected $scopeDataType = '';
1943
1944
1945
  public function setEtag($etag)
1946
  {
1947
    $this->etag = $etag;
1948
  }
1949
  public function getEtag()
1950
  {
1951
    return $this->etag;
1952
  }
1953
  public function setId($id)
1954
  {
1955
    $this->id = $id;
1956
  }
1957
  public function getId()
1958
  {
1959
    return $this->id;
1960
  }
1961
  public function setKind($kind)
1962
  {
1963
    $this->kind = $kind;
1964
  }
1965
  public function getKind()
1966
  {
1967
    return $this->kind;
1968
  }
1969
  public function setRole($role)
1970
  {
1971
    $this->role = $role;
1972
  }
1973
  public function getRole()
1974
  {
1975
    return $this->role;
1976
  }
1977
  public function setScope(Google_Service_Calendar_AclRuleScope $scope)
1978
  {
1979
    $this->scope = $scope;
0 ignored issues
show
Bug introduced by
The property scope does not exist. Did you maybe forget to declare it?

In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:

class MyClass { }

$x = new MyClass();
$x->foo = true;

Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion:

class MyClass {
    public $foo;
}

$x = new MyClass();
$x->foo = true;
Loading history...
1980
  }
1981
  public function getScope()
1982
  {
1983
    return $this->scope;
1984
  }
1985
}
1986
1987 View Code Duplication
class Google_Service_Calendar_AclRuleScope extends Google_Model
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
1988
{
1989
  protected $internal_gapi_mappings = array(
1990
  );
1991
  public $type;
1992
  public $value;
1993
1994
1995
  public function setType($type)
1996
  {
1997
    $this->type = $type;
1998
  }
1999
  public function getType()
2000
  {
2001
    return $this->type;
2002
  }
2003
  public function setValue($value)
2004
  {
2005
    $this->value = $value;
2006
  }
2007
  public function getValue()
2008
  {
2009
    return $this->value;
2010
  }
2011
}
2012
2013
class Google_Service_Calendar_Calendar extends Google_Model
2014
{
2015
  protected $internal_gapi_mappings = array(
2016
  );
2017
  public $description;
2018
  public $etag;
2019
  public $id;
2020
  public $kind;
2021
  public $location;
2022
  public $summary;
2023
  public $timeZone;
2024
2025
2026
  public function setDescription($description)
2027
  {
2028
    $this->description = $description;
2029
  }
2030
  public function getDescription()
2031
  {
2032
    return $this->description;
2033
  }
2034
  public function setEtag($etag)
2035
  {
2036
    $this->etag = $etag;
2037
  }
2038
  public function getEtag()
2039
  {
2040
    return $this->etag;
2041
  }
2042
  public function setId($id)
2043
  {
2044
    $this->id = $id;
2045
  }
2046
  public function getId()
2047
  {
2048
    return $this->id;
2049
  }
2050
  public function setKind($kind)
2051
  {
2052
    $this->kind = $kind;
2053
  }
2054
  public function getKind()
2055
  {
2056
    return $this->kind;
2057
  }
2058
  public function setLocation($location)
2059
  {
2060
    $this->location = $location;
2061
  }
2062
  public function getLocation()
2063
  {
2064
    return $this->location;
2065
  }
2066
  public function setSummary($summary)
2067
  {
2068
    $this->summary = $summary;
2069
  }
2070
  public function getSummary()
2071
  {
2072
    return $this->summary;
2073
  }
2074
  public function setTimeZone($timeZone)
2075
  {
2076
    $this->timeZone = $timeZone;
2077
  }
2078
  public function getTimeZone()
2079
  {
2080
    return $this->timeZone;
2081
  }
2082
}
2083
2084 View Code Duplication
class Google_Service_Calendar_CalendarList extends Google_Collection
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
2085
{
2086
  protected $collection_key = 'items';
2087
  protected $internal_gapi_mappings = array(
2088
  );
2089
  public $etag;
2090
  protected $itemsType = 'Google_Service_Calendar_CalendarListEntry';
2091
  protected $itemsDataType = 'array';
2092
  public $kind;
2093
  public $nextPageToken;
2094
  public $nextSyncToken;
2095
2096
2097
  public function setEtag($etag)
2098
  {
2099
    $this->etag = $etag;
2100
  }
2101
  public function getEtag()
2102
  {
2103
    return $this->etag;
2104
  }
2105
  public function setItems($items)
2106
  {
2107
    $this->items = $items;
0 ignored issues
show
Bug introduced by
The property items does not exist. Did you maybe forget to declare it?

In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:

class MyClass { }

$x = new MyClass();
$x->foo = true;

Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion:

class MyClass {
    public $foo;
}

$x = new MyClass();
$x->foo = true;
Loading history...
2108
  }
2109
  public function getItems()
2110
  {
2111
    return $this->items;
2112
  }
2113
  public function setKind($kind)
2114
  {
2115
    $this->kind = $kind;
2116
  }
2117
  public function getKind()
2118
  {
2119
    return $this->kind;
2120
  }
2121
  public function setNextPageToken($nextPageToken)
2122
  {
2123
    $this->nextPageToken = $nextPageToken;
2124
  }
2125
  public function getNextPageToken()
2126
  {
2127
    return $this->nextPageToken;
2128
  }
2129
  public function setNextSyncToken($nextSyncToken)
2130
  {
2131
    $this->nextSyncToken = $nextSyncToken;
2132
  }
2133
  public function getNextSyncToken()
2134
  {
2135
    return $this->nextSyncToken;
2136
  }
2137
}
2138
2139
class Google_Service_Calendar_CalendarListEntry extends Google_Collection
2140
{
2141
  protected $collection_key = 'defaultReminders';
2142
  protected $internal_gapi_mappings = array(
2143
  );
2144
  public $accessRole;
2145
  public $backgroundColor;
2146
  public $colorId;
2147
  protected $defaultRemindersType = 'Google_Service_Calendar_EventReminder';
2148
  protected $defaultRemindersDataType = 'array';
2149
  public $deleted;
2150
  public $description;
2151
  public $etag;
2152
  public $foregroundColor;
2153
  public $hidden;
2154
  public $id;
2155
  public $kind;
2156
  public $location;
2157
  protected $notificationSettingsType = 'Google_Service_Calendar_CalendarListEntryNotificationSettings';
2158
  protected $notificationSettingsDataType = '';
2159
  public $primary;
2160
  public $selected;
2161
  public $summary;
2162
  public $summaryOverride;
2163
  public $timeZone;
2164
2165
2166
  public function setAccessRole($accessRole)
2167
  {
2168
    $this->accessRole = $accessRole;
2169
  }
2170
  public function getAccessRole()
2171
  {
2172
    return $this->accessRole;
2173
  }
2174
  public function setBackgroundColor($backgroundColor)
2175
  {
2176
    $this->backgroundColor = $backgroundColor;
2177
  }
2178
  public function getBackgroundColor()
2179
  {
2180
    return $this->backgroundColor;
2181
  }
2182
  public function setColorId($colorId)
2183
  {
2184
    $this->colorId = $colorId;
2185
  }
2186
  public function getColorId()
2187
  {
2188
    return $this->colorId;
2189
  }
2190
  public function setDefaultReminders($defaultReminders)
2191
  {
2192
    $this->defaultReminders = $defaultReminders;
2193
  }
2194
  public function getDefaultReminders()
2195
  {
2196
    return $this->defaultReminders;
2197
  }
2198
  public function setDeleted($deleted)
2199
  {
2200
    $this->deleted = $deleted;
2201
  }
2202
  public function getDeleted()
2203
  {
2204
    return $this->deleted;
2205
  }
2206
  public function setDescription($description)
2207
  {
2208
    $this->description = $description;
2209
  }
2210
  public function getDescription()
2211
  {
2212
    return $this->description;
2213
  }
2214
  public function setEtag($etag)
2215
  {
2216
    $this->etag = $etag;
2217
  }
2218
  public function getEtag()
2219
  {
2220
    return $this->etag;
2221
  }
2222
  public function setForegroundColor($foregroundColor)
2223
  {
2224
    $this->foregroundColor = $foregroundColor;
2225
  }
2226
  public function getForegroundColor()
2227
  {
2228
    return $this->foregroundColor;
2229
  }
2230
  public function setHidden($hidden)
2231
  {
2232
    $this->hidden = $hidden;
2233
  }
2234
  public function getHidden()
2235
  {
2236
    return $this->hidden;
2237
  }
2238
  public function setId($id)
2239
  {
2240
    $this->id = $id;
2241
  }
2242
  public function getId()
2243
  {
2244
    return $this->id;
2245
  }
2246
  public function setKind($kind)
2247
  {
2248
    $this->kind = $kind;
2249
  }
2250
  public function getKind()
2251
  {
2252
    return $this->kind;
2253
  }
2254
  public function setLocation($location)
2255
  {
2256
    $this->location = $location;
2257
  }
2258
  public function getLocation()
2259
  {
2260
    return $this->location;
2261
  }
2262
  public function setNotificationSettings(Google_Service_Calendar_CalendarListEntryNotificationSettings $notificationSettings)
2263
  {
2264
    $this->notificationSettings = $notificationSettings;
2265
  }
2266
  public function getNotificationSettings()
2267
  {
2268
    return $this->notificationSettings;
2269
  }
2270
  public function setPrimary($primary)
2271
  {
2272
    $this->primary = $primary;
2273
  }
2274
  public function getPrimary()
2275
  {
2276
    return $this->primary;
2277
  }
2278
  public function setSelected($selected)
2279
  {
2280
    $this->selected = $selected;
2281
  }
2282
  public function getSelected()
2283
  {
2284
    return $this->selected;
2285
  }
2286
  public function setSummary($summary)
2287
  {
2288
    $this->summary = $summary;
2289
  }
2290
  public function getSummary()
2291
  {
2292
    return $this->summary;
2293
  }
2294
  public function setSummaryOverride($summaryOverride)
2295
  {
2296
    $this->summaryOverride = $summaryOverride;
2297
  }
2298
  public function getSummaryOverride()
2299
  {
2300
    return $this->summaryOverride;
2301
  }
2302
  public function setTimeZone($timeZone)
2303
  {
2304
    $this->timeZone = $timeZone;
2305
  }
2306
  public function getTimeZone()
2307
  {
2308
    return $this->timeZone;
2309
  }
2310
}
2311
2312
class Google_Service_Calendar_CalendarListEntryNotificationSettings extends Google_Collection
2313
{
2314
  protected $collection_key = 'notifications';
2315
  protected $internal_gapi_mappings = array(
2316
  );
2317
  protected $notificationsType = 'Google_Service_Calendar_CalendarNotification';
2318
  protected $notificationsDataType = 'array';
2319
2320
2321
  public function setNotifications($notifications)
2322
  {
2323
    $this->notifications = $notifications;
2324
  }
2325
  public function getNotifications()
2326
  {
2327
    return $this->notifications;
2328
  }
2329
}
2330
2331
class Google_Service_Calendar_CalendarNotification extends Google_Model
2332
{
2333
  protected $internal_gapi_mappings = array(
2334
  );
2335
  public $method;
2336
  public $type;
2337
2338
2339
  public function setMethod($method)
2340
  {
2341
    $this->method = $method;
2342
  }
2343
  public function getMethod()
2344
  {
2345
    return $this->method;
2346
  }
2347
  public function setType($type)
2348
  {
2349
    $this->type = $type;
2350
  }
2351
  public function getType()
2352
  {
2353
    return $this->type;
2354
  }
2355
}
2356
2357 View Code Duplication
class Google_Service_Calendar_Channel extends Google_Model
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
2358
{
2359
  protected $internal_gapi_mappings = array(
2360
  );
2361
  public $address;
2362
  public $expiration;
2363
  public $id;
2364
  public $kind;
2365
  public $params;
2366
  public $payload;
2367
  public $resourceId;
2368
  public $resourceUri;
2369
  public $token;
2370
  public $type;
2371
2372
2373
  public function setAddress($address)
2374
  {
2375
    $this->address = $address;
2376
  }
2377
  public function getAddress()
2378
  {
2379
    return $this->address;
2380
  }
2381
  public function setExpiration($expiration)
2382
  {
2383
    $this->expiration = $expiration;
2384
  }
2385
  public function getExpiration()
2386
  {
2387
    return $this->expiration;
2388
  }
2389
  public function setId($id)
2390
  {
2391
    $this->id = $id;
2392
  }
2393
  public function getId()
2394
  {
2395
    return $this->id;
2396
  }
2397
  public function setKind($kind)
2398
  {
2399
    $this->kind = $kind;
2400
  }
2401
  public function getKind()
2402
  {
2403
    return $this->kind;
2404
  }
2405
  public function setParams($params)
2406
  {
2407
    $this->params = $params;
2408
  }
2409
  public function getParams()
2410
  {
2411
    return $this->params;
2412
  }
2413
  public function setPayload($payload)
2414
  {
2415
    $this->payload = $payload;
2416
  }
2417
  public function getPayload()
2418
  {
2419
    return $this->payload;
2420
  }
2421
  public function setResourceId($resourceId)
2422
  {
2423
    $this->resourceId = $resourceId;
2424
  }
2425
  public function getResourceId()
2426
  {
2427
    return $this->resourceId;
2428
  }
2429
  public function setResourceUri($resourceUri)
2430
  {
2431
    $this->resourceUri = $resourceUri;
2432
  }
2433
  public function getResourceUri()
2434
  {
2435
    return $this->resourceUri;
2436
  }
2437
  public function setToken($token)
2438
  {
2439
    $this->token = $token;
2440
  }
2441
  public function getToken()
2442
  {
2443
    return $this->token;
2444
  }
2445
  public function setType($type)
2446
  {
2447
    $this->type = $type;
2448
  }
2449
  public function getType()
2450
  {
2451
    return $this->type;
2452
  }
2453
}
2454
2455
class Google_Service_Calendar_ChannelParams extends Google_Model
2456
{
2457
}
2458
2459
class Google_Service_Calendar_ColorDefinition extends Google_Model
2460
{
2461
  protected $internal_gapi_mappings = array(
2462
  );
2463
  public $background;
2464
  public $foreground;
2465
2466
2467
  public function setBackground($background)
2468
  {
2469
    $this->background = $background;
2470
  }
2471
  public function getBackground()
2472
  {
2473
    return $this->background;
2474
  }
2475
  public function setForeground($foreground)
2476
  {
2477
    $this->foreground = $foreground;
2478
  }
2479
  public function getForeground()
2480
  {
2481
    return $this->foreground;
2482
  }
2483
}
2484
2485
class Google_Service_Calendar_Colors extends Google_Model
2486
{
2487
  protected $internal_gapi_mappings = array(
2488
  );
2489
  protected $calendarType = 'Google_Service_Calendar_ColorDefinition';
2490
  protected $calendarDataType = 'map';
2491
  protected $eventType = 'Google_Service_Calendar_ColorDefinition';
2492
  protected $eventDataType = 'map';
2493
  public $kind;
2494
  public $updated;
2495
2496
2497
  public function setCalendar($calendar)
2498
  {
2499
    $this->calendar = $calendar;
2500
  }
2501
  public function getCalendar()
2502
  {
2503
    return $this->calendar;
2504
  }
2505
  public function setEvent($event)
2506
  {
2507
    $this->event = $event;
0 ignored issues
show
Bug introduced by
The property event does not exist. Did you maybe forget to declare it?

In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:

class MyClass { }

$x = new MyClass();
$x->foo = true;

Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion:

class MyClass {
    public $foo;
}

$x = new MyClass();
$x->foo = true;
Loading history...
2508
  }
2509
  public function getEvent()
2510
  {
2511
    return $this->event;
2512
  }
2513
  public function setKind($kind)
2514
  {
2515
    $this->kind = $kind;
2516
  }
2517
  public function getKind()
2518
  {
2519
    return $this->kind;
2520
  }
2521
  public function setUpdated($updated)
2522
  {
2523
    $this->updated = $updated;
2524
  }
2525
  public function getUpdated()
2526
  {
2527
    return $this->updated;
2528
  }
2529
}
2530
2531
class Google_Service_Calendar_ColorsCalendar extends Google_Model
2532
{
2533
}
2534
2535
class Google_Service_Calendar_ColorsEvent extends Google_Model
2536
{
2537
}
2538
2539
class Google_Service_Calendar_Error extends Google_Model
2540
{
2541
  protected $internal_gapi_mappings = array(
2542
  );
2543
  public $domain;
2544
  public $reason;
2545
2546
2547
  public function setDomain($domain)
2548
  {
2549
    $this->domain = $domain;
2550
  }
2551
  public function getDomain()
2552
  {
2553
    return $this->domain;
2554
  }
2555
  public function setReason($reason)
2556
  {
2557
    $this->reason = $reason;
2558
  }
2559
  public function getReason()
2560
  {
2561
    return $this->reason;
2562
  }
2563
}
2564
2565
class Google_Service_Calendar_Event extends Google_Collection
2566
{
2567
  protected $collection_key = 'recurrence';
2568
  protected $internal_gapi_mappings = array(
2569
  );
2570
  public $anyoneCanAddSelf;
2571
  protected $attachmentsType = 'Google_Service_Calendar_EventAttachment';
2572
  protected $attachmentsDataType = 'array';
2573
  protected $attendeesType = 'Google_Service_Calendar_EventAttendee';
2574
  protected $attendeesDataType = 'array';
2575
  public $attendeesOmitted;
2576
  public $colorId;
2577
  public $created;
2578
  protected $creatorType = 'Google_Service_Calendar_EventCreator';
2579
  protected $creatorDataType = '';
2580
  public $description;
2581
  protected $endType = 'Google_Service_Calendar_EventDateTime';
2582
  protected $endDataType = '';
2583
  public $endTimeUnspecified;
2584
  public $etag;
2585
  protected $extendedPropertiesType = 'Google_Service_Calendar_EventExtendedProperties';
2586
  protected $extendedPropertiesDataType = '';
2587
  protected $gadgetType = 'Google_Service_Calendar_EventGadget';
2588
  protected $gadgetDataType = '';
2589
  public $guestsCanInviteOthers;
2590
  public $guestsCanModify;
2591
  public $guestsCanSeeOtherGuests;
2592
  public $hangoutLink;
2593
  public $htmlLink;
2594
  public $iCalUID;
2595
  public $id;
2596
  public $kind;
2597
  public $location;
2598
  public $locked;
2599
  protected $organizerType = 'Google_Service_Calendar_EventOrganizer';
2600
  protected $organizerDataType = '';
2601
  protected $originalStartTimeType = 'Google_Service_Calendar_EventDateTime';
2602
  protected $originalStartTimeDataType = '';
2603
  public $privateCopy;
2604
  public $recurrence;
2605
  public $recurringEventId;
2606
  protected $remindersType = 'Google_Service_Calendar_EventReminders';
2607
  protected $remindersDataType = '';
2608
  public $sequence;
2609
  protected $sourceType = 'Google_Service_Calendar_EventSource';
2610
  protected $sourceDataType = '';
2611
  protected $startType = 'Google_Service_Calendar_EventDateTime';
2612
  protected $startDataType = '';
2613
  public $status;
2614
  public $summary;
2615
  public $transparency;
2616
  public $updated;
2617
  public $visibility;
2618
2619
2620
  public function setAnyoneCanAddSelf($anyoneCanAddSelf)
2621
  {
2622
    $this->anyoneCanAddSelf = $anyoneCanAddSelf;
2623
  }
2624
  public function getAnyoneCanAddSelf()
2625
  {
2626
    return $this->anyoneCanAddSelf;
2627
  }
2628
  public function setAttachments($attachments)
2629
  {
2630
    $this->attachments = $attachments;
2631
  }
2632
  public function getAttachments()
2633
  {
2634
    return $this->attachments;
2635
  }
2636
  public function setAttendees($attendees)
2637
  {
2638
    $this->attendees = $attendees;
2639
  }
2640
  public function getAttendees()
2641
  {
2642
    return $this->attendees;
2643
  }
2644
  public function setAttendeesOmitted($attendeesOmitted)
2645
  {
2646
    $this->attendeesOmitted = $attendeesOmitted;
2647
  }
2648
  public function getAttendeesOmitted()
2649
  {
2650
    return $this->attendeesOmitted;
2651
  }
2652
  public function setColorId($colorId)
2653
  {
2654
    $this->colorId = $colorId;
2655
  }
2656
  public function getColorId()
2657
  {
2658
    return $this->colorId;
2659
  }
2660
  public function setCreated($created)
2661
  {
2662
    $this->created = $created;
2663
  }
2664
  public function getCreated()
2665
  {
2666
    return $this->created;
2667
  }
2668
  public function setCreator(Google_Service_Calendar_EventCreator $creator)
2669
  {
2670
    $this->creator = $creator;
2671
  }
2672
  public function getCreator()
2673
  {
2674
    return $this->creator;
2675
  }
2676
  public function setDescription($description)
2677
  {
2678
    $this->description = $description;
2679
  }
2680
  public function getDescription()
2681
  {
2682
    return $this->description;
2683
  }
2684
  public function setEnd(Google_Service_Calendar_EventDateTime $end)
2685
  {
2686
    $this->end = $end;
0 ignored issues
show
Bug introduced by
The property end does not exist. Did you maybe forget to declare it?

In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:

class MyClass { }

$x = new MyClass();
$x->foo = true;

Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion:

class MyClass {
    public $foo;
}

$x = new MyClass();
$x->foo = true;
Loading history...
2687
  }
2688
  public function getEnd()
2689
  {
2690
    return $this->end;
2691
  }
2692
  public function setEndTimeUnspecified($endTimeUnspecified)
2693
  {
2694
    $this->endTimeUnspecified = $endTimeUnspecified;
2695
  }
2696
  public function getEndTimeUnspecified()
2697
  {
2698
    return $this->endTimeUnspecified;
2699
  }
2700
  public function setEtag($etag)
2701
  {
2702
    $this->etag = $etag;
2703
  }
2704
  public function getEtag()
2705
  {
2706
    return $this->etag;
2707
  }
2708
  public function setExtendedProperties(Google_Service_Calendar_EventExtendedProperties $extendedProperties)
2709
  {
2710
    $this->extendedProperties = $extendedProperties;
2711
  }
2712
  public function getExtendedProperties()
2713
  {
2714
    return $this->extendedProperties;
2715
  }
2716
  public function setGadget(Google_Service_Calendar_EventGadget $gadget)
2717
  {
2718
    $this->gadget = $gadget;
2719
  }
2720
  public function getGadget()
2721
  {
2722
    return $this->gadget;
2723
  }
2724
  public function setGuestsCanInviteOthers($guestsCanInviteOthers)
2725
  {
2726
    $this->guestsCanInviteOthers = $guestsCanInviteOthers;
2727
  }
2728
  public function getGuestsCanInviteOthers()
2729
  {
2730
    return $this->guestsCanInviteOthers;
2731
  }
2732
  public function setGuestsCanModify($guestsCanModify)
2733
  {
2734
    $this->guestsCanModify = $guestsCanModify;
2735
  }
2736
  public function getGuestsCanModify()
2737
  {
2738
    return $this->guestsCanModify;
2739
  }
2740
  public function setGuestsCanSeeOtherGuests($guestsCanSeeOtherGuests)
2741
  {
2742
    $this->guestsCanSeeOtherGuests = $guestsCanSeeOtherGuests;
2743
  }
2744
  public function getGuestsCanSeeOtherGuests()
2745
  {
2746
    return $this->guestsCanSeeOtherGuests;
2747
  }
2748
  public function setHangoutLink($hangoutLink)
2749
  {
2750
    $this->hangoutLink = $hangoutLink;
2751
  }
2752
  public function getHangoutLink()
2753
  {
2754
    return $this->hangoutLink;
2755
  }
2756
  public function setHtmlLink($htmlLink)
2757
  {
2758
    $this->htmlLink = $htmlLink;
2759
  }
2760
  public function getHtmlLink()
2761
  {
2762
    return $this->htmlLink;
2763
  }
2764
  public function setICalUID($iCalUID)
2765
  {
2766
    $this->iCalUID = $iCalUID;
2767
  }
2768
  public function getICalUID()
2769
  {
2770
    return $this->iCalUID;
2771
  }
2772
  public function setId($id)
2773
  {
2774
    $this->id = $id;
2775
  }
2776
  public function getId()
2777
  {
2778
    return $this->id;
2779
  }
2780
  public function setKind($kind)
2781
  {
2782
    $this->kind = $kind;
2783
  }
2784
  public function getKind()
2785
  {
2786
    return $this->kind;
2787
  }
2788
  public function setLocation($location)
2789
  {
2790
    $this->location = $location;
2791
  }
2792
  public function getLocation()
2793
  {
2794
    return $this->location;
2795
  }
2796
  public function setLocked($locked)
2797
  {
2798
    $this->locked = $locked;
2799
  }
2800
  public function getLocked()
2801
  {
2802
    return $this->locked;
2803
  }
2804
  public function setOrganizer(Google_Service_Calendar_EventOrganizer $organizer)
2805
  {
2806
    $this->organizer = $organizer;
2807
  }
2808
  public function getOrganizer()
2809
  {
2810
    return $this->organizer;
2811
  }
2812
  public function setOriginalStartTime(Google_Service_Calendar_EventDateTime $originalStartTime)
2813
  {
2814
    $this->originalStartTime = $originalStartTime;
2815
  }
2816
  public function getOriginalStartTime()
2817
  {
2818
    return $this->originalStartTime;
2819
  }
2820
  public function setPrivateCopy($privateCopy)
2821
  {
2822
    $this->privateCopy = $privateCopy;
2823
  }
2824
  public function getPrivateCopy()
2825
  {
2826
    return $this->privateCopy;
2827
  }
2828
  public function setRecurrence($recurrence)
2829
  {
2830
    $this->recurrence = $recurrence;
2831
  }
2832
  public function getRecurrence()
2833
  {
2834
    return $this->recurrence;
2835
  }
2836
  public function setRecurringEventId($recurringEventId)
2837
  {
2838
    $this->recurringEventId = $recurringEventId;
2839
  }
2840
  public function getRecurringEventId()
2841
  {
2842
    return $this->recurringEventId;
2843
  }
2844
  public function setReminders(Google_Service_Calendar_EventReminders $reminders)
2845
  {
2846
    $this->reminders = $reminders;
2847
  }
2848
  public function getReminders()
2849
  {
2850
    return $this->reminders;
2851
  }
2852
  public function setSequence($sequence)
2853
  {
2854
    $this->sequence = $sequence;
2855
  }
2856
  public function getSequence()
2857
  {
2858
    return $this->sequence;
2859
  }
2860
  public function setSource(Google_Service_Calendar_EventSource $source)
2861
  {
2862
    $this->source = $source;
2863
  }
2864
  public function getSource()
2865
  {
2866
    return $this->source;
2867
  }
2868
  public function setStart(Google_Service_Calendar_EventDateTime $start)
2869
  {
2870
    $this->start = $start;
0 ignored issues
show
Bug introduced by
The property start does not exist. Did you maybe forget to declare it?

In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:

class MyClass { }

$x = new MyClass();
$x->foo = true;

Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion:

class MyClass {
    public $foo;
}

$x = new MyClass();
$x->foo = true;
Loading history...
2871
  }
2872
  public function getStart()
2873
  {
2874
    return $this->start;
2875
  }
2876
  public function setStatus($status)
2877
  {
2878
    $this->status = $status;
2879
  }
2880
  public function getStatus()
2881
  {
2882
    return $this->status;
2883
  }
2884
  public function setSummary($summary)
2885
  {
2886
    $this->summary = $summary;
2887
  }
2888
  public function getSummary()
2889
  {
2890
    return $this->summary;
2891
  }
2892
  public function setTransparency($transparency)
2893
  {
2894
    $this->transparency = $transparency;
2895
  }
2896
  public function getTransparency()
2897
  {
2898
    return $this->transparency;
2899
  }
2900
  public function setUpdated($updated)
2901
  {
2902
    $this->updated = $updated;
2903
  }
2904
  public function getUpdated()
2905
  {
2906
    return $this->updated;
2907
  }
2908
  public function setVisibility($visibility)
2909
  {
2910
    $this->visibility = $visibility;
2911
  }
2912
  public function getVisibility()
2913
  {
2914
    return $this->visibility;
2915
  }
2916
}
2917
2918
class Google_Service_Calendar_EventAttachment extends Google_Model
2919
{
2920
  protected $internal_gapi_mappings = array(
2921
  );
2922
  public $fileUrl;
2923
  public $iconLink;
2924
  public $mimeType;
2925
  public $title;
2926
2927
2928
  public function setFileUrl($fileUrl)
2929
  {
2930
    $this->fileUrl = $fileUrl;
2931
  }
2932
  public function getFileUrl()
2933
  {
2934
    return $this->fileUrl;
2935
  }
2936
  public function setIconLink($iconLink)
2937
  {
2938
    $this->iconLink = $iconLink;
2939
  }
2940
  public function getIconLink()
2941
  {
2942
    return $this->iconLink;
2943
  }
2944
  public function setMimeType($mimeType)
2945
  {
2946
    $this->mimeType = $mimeType;
2947
  }
2948
  public function getMimeType()
2949
  {
2950
    return $this->mimeType;
2951
  }
2952
  public function setTitle($title)
2953
  {
2954
    $this->title = $title;
2955
  }
2956
  public function getTitle()
2957
  {
2958
    return $this->title;
2959
  }
2960
}
2961
2962
class Google_Service_Calendar_EventAttendee extends Google_Model
2963
{
2964
  protected $internal_gapi_mappings = array(
2965
  );
2966
  public $additionalGuests;
2967
  public $comment;
2968
  public $displayName;
2969
  public $email;
2970
  public $id;
2971
  public $optional;
2972
  public $organizer;
2973
  public $resource;
2974
  public $responseStatus;
2975
  public $self;
2976
2977
2978
  public function setAdditionalGuests($additionalGuests)
2979
  {
2980
    $this->additionalGuests = $additionalGuests;
2981
  }
2982
  public function getAdditionalGuests()
2983
  {
2984
    return $this->additionalGuests;
2985
  }
2986
  public function setComment($comment)
2987
  {
2988
    $this->comment = $comment;
2989
  }
2990
  public function getComment()
2991
  {
2992
    return $this->comment;
2993
  }
2994
  public function setDisplayName($displayName)
2995
  {
2996
    $this->displayName = $displayName;
2997
  }
2998
  public function getDisplayName()
2999
  {
3000
    return $this->displayName;
3001
  }
3002
  public function setEmail($email)
3003
  {
3004
    $this->email = $email;
3005
  }
3006
  public function getEmail()
3007
  {
3008
    return $this->email;
3009
  }
3010
  public function setId($id)
3011
  {
3012
    $this->id = $id;
3013
  }
3014
  public function getId()
3015
  {
3016
    return $this->id;
3017
  }
3018
  public function setOptional($optional)
3019
  {
3020
    $this->optional = $optional;
3021
  }
3022
  public function getOptional()
3023
  {
3024
    return $this->optional;
3025
  }
3026
  public function setOrganizer($organizer)
3027
  {
3028
    $this->organizer = $organizer;
3029
  }
3030
  public function getOrganizer()
3031
  {
3032
    return $this->organizer;
3033
  }
3034
  public function setResource($resource)
3035
  {
3036
    $this->resource = $resource;
3037
  }
3038
  public function getResource()
3039
  {
3040
    return $this->resource;
3041
  }
3042
  public function setResponseStatus($responseStatus)
3043
  {
3044
    $this->responseStatus = $responseStatus;
3045
  }
3046
  public function getResponseStatus()
3047
  {
3048
    return $this->responseStatus;
3049
  }
3050
  public function setSelf($self)
3051
  {
3052
    $this->self = $self;
3053
  }
3054
  public function getSelf()
3055
  {
3056
    return $this->self;
3057
  }
3058
}
3059
3060 View Code Duplication
class Google_Service_Calendar_EventCreator extends Google_Model
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
3061
{
3062
  protected $internal_gapi_mappings = array(
3063
  );
3064
  public $displayName;
3065
  public $email;
3066
  public $id;
3067
  public $self;
3068
3069
3070
  public function setDisplayName($displayName)
3071
  {
3072
    $this->displayName = $displayName;
3073
  }
3074
  public function getDisplayName()
3075
  {
3076
    return $this->displayName;
3077
  }
3078
  public function setEmail($email)
3079
  {
3080
    $this->email = $email;
3081
  }
3082
  public function getEmail()
3083
  {
3084
    return $this->email;
3085
  }
3086
  public function setId($id)
3087
  {
3088
    $this->id = $id;
3089
  }
3090
  public function getId()
3091
  {
3092
    return $this->id;
3093
  }
3094
  public function setSelf($self)
3095
  {
3096
    $this->self = $self;
3097
  }
3098
  public function getSelf()
3099
  {
3100
    return $this->self;
3101
  }
3102
}
3103
3104
class Google_Service_Calendar_EventDateTime extends Google_Model
3105
{
3106
  protected $internal_gapi_mappings = array(
3107
  );
3108
  public $date;
3109
  public $dateTime;
3110
  public $timeZone;
3111
3112
3113
  public function setDate($date)
3114
  {
3115
    $this->date = $date;
3116
  }
3117
  public function getDate()
3118
  {
3119
    return $this->date;
3120
  }
3121
  public function setDateTime($dateTime)
3122
  {
3123
    $this->dateTime = $dateTime;
3124
  }
3125
  public function getDateTime()
3126
  {
3127
    return $this->dateTime;
3128
  }
3129
  public function setTimeZone($timeZone)
3130
  {
3131
    $this->timeZone = $timeZone;
3132
  }
3133
  public function getTimeZone()
3134
  {
3135
    return $this->timeZone;
3136
  }
3137
}
3138
3139
class Google_Service_Calendar_EventExtendedProperties extends Google_Model
3140
{
3141
  protected $internal_gapi_mappings = array(
3142
  );
3143
  public $private;
3144
  public $shared;
3145
3146
3147
  public function setPrivate($private)
3148
  {
3149
    $this->private = $private;
3150
  }
3151
  public function getPrivate()
3152
  {
3153
    return $this->private;
3154
  }
3155
  public function setShared($shared)
3156
  {
3157
    $this->shared = $shared;
3158
  }
3159
  public function getShared()
3160
  {
3161
    return $this->shared;
3162
  }
3163
}
3164
3165
class Google_Service_Calendar_EventExtendedPropertiesPrivate extends Google_Model
3166
{
3167
}
3168
3169
class Google_Service_Calendar_EventExtendedPropertiesShared extends Google_Model
3170
{
3171
}
3172
3173 View Code Duplication
class Google_Service_Calendar_EventGadget extends Google_Model
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
3174
{
3175
  protected $internal_gapi_mappings = array(
3176
  );
3177
  public $display;
3178
  public $height;
3179
  public $iconLink;
3180
  public $link;
3181
  public $preferences;
3182
  public $title;
3183
  public $type;
3184
  public $width;
3185
3186
3187
  public function setDisplay($display)
3188
  {
3189
    $this->display = $display;
3190
  }
3191
  public function getDisplay()
3192
  {
3193
    return $this->display;
3194
  }
3195
  public function setHeight($height)
3196
  {
3197
    $this->height = $height;
3198
  }
3199
  public function getHeight()
3200
  {
3201
    return $this->height;
3202
  }
3203
  public function setIconLink($iconLink)
3204
  {
3205
    $this->iconLink = $iconLink;
3206
  }
3207
  public function getIconLink()
3208
  {
3209
    return $this->iconLink;
3210
  }
3211
  public function setLink($link)
3212
  {
3213
    $this->link = $link;
3214
  }
3215
  public function getLink()
3216
  {
3217
    return $this->link;
3218
  }
3219
  public function setPreferences($preferences)
3220
  {
3221
    $this->preferences = $preferences;
3222
  }
3223
  public function getPreferences()
3224
  {
3225
    return $this->preferences;
3226
  }
3227
  public function setTitle($title)
3228
  {
3229
    $this->title = $title;
3230
  }
3231
  public function getTitle()
3232
  {
3233
    return $this->title;
3234
  }
3235
  public function setType($type)
3236
  {
3237
    $this->type = $type;
3238
  }
3239
  public function getType()
3240
  {
3241
    return $this->type;
3242
  }
3243
  public function setWidth($width)
3244
  {
3245
    $this->width = $width;
3246
  }
3247
  public function getWidth()
3248
  {
3249
    return $this->width;
3250
  }
3251
}
3252
3253
class Google_Service_Calendar_EventGadgetPreferences extends Google_Model
3254
{
3255
}
3256
3257 View Code Duplication
class Google_Service_Calendar_EventOrganizer extends Google_Model
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
3258
{
3259
  protected $internal_gapi_mappings = array(
3260
  );
3261
  public $displayName;
3262
  public $email;
3263
  public $id;
3264
  public $self;
3265
3266
3267
  public function setDisplayName($displayName)
3268
  {
3269
    $this->displayName = $displayName;
3270
  }
3271
  public function getDisplayName()
3272
  {
3273
    return $this->displayName;
3274
  }
3275
  public function setEmail($email)
3276
  {
3277
    $this->email = $email;
3278
  }
3279
  public function getEmail()
3280
  {
3281
    return $this->email;
3282
  }
3283
  public function setId($id)
3284
  {
3285
    $this->id = $id;
3286
  }
3287
  public function getId()
3288
  {
3289
    return $this->id;
3290
  }
3291
  public function setSelf($self)
3292
  {
3293
    $this->self = $self;
3294
  }
3295
  public function getSelf()
3296
  {
3297
    return $this->self;
3298
  }
3299
}
3300
3301
class Google_Service_Calendar_EventReminder extends Google_Model
3302
{
3303
  protected $internal_gapi_mappings = array(
3304
  );
3305
  public $method;
3306
  public $minutes;
3307
3308
3309
  public function setMethod($method)
3310
  {
3311
    $this->method = $method;
3312
  }
3313
  public function getMethod()
3314
  {
3315
    return $this->method;
3316
  }
3317
  public function setMinutes($minutes)
3318
  {
3319
    $this->minutes = $minutes;
3320
  }
3321
  public function getMinutes()
3322
  {
3323
    return $this->minutes;
3324
  }
3325
}
3326
3327
class Google_Service_Calendar_EventReminders extends Google_Collection
3328
{
3329
  protected $collection_key = 'overrides';
3330
  protected $internal_gapi_mappings = array(
3331
  );
3332
  protected $overridesType = 'Google_Service_Calendar_EventReminder';
3333
  protected $overridesDataType = 'array';
3334
  public $useDefault;
3335
3336
3337
  public function setOverrides($overrides)
3338
  {
3339
    $this->overrides = $overrides;
3340
  }
3341
  public function getOverrides()
3342
  {
3343
    return $this->overrides;
3344
  }
3345
  public function setUseDefault($useDefault)
3346
  {
3347
    $this->useDefault = $useDefault;
3348
  }
3349
  public function getUseDefault()
3350
  {
3351
    return $this->useDefault;
3352
  }
3353
}
3354
3355 View Code Duplication
class Google_Service_Calendar_EventSource extends Google_Model
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
3356
{
3357
  protected $internal_gapi_mappings = array(
3358
  );
3359
  public $title;
3360
  public $url;
3361
3362
3363
  public function setTitle($title)
3364
  {
3365
    $this->title = $title;
3366
  }
3367
  public function getTitle()
3368
  {
3369
    return $this->title;
3370
  }
3371
  public function setUrl($url)
3372
  {
3373
    $this->url = $url;
3374
  }
3375
  public function getUrl()
3376
  {
3377
    return $this->url;
3378
  }
3379
}
3380
3381
class Google_Service_Calendar_Events extends Google_Collection
3382
{
3383
  protected $collection_key = 'items';
3384
  protected $internal_gapi_mappings = array(
3385
  );
3386
  public $accessRole;
3387
  protected $defaultRemindersType = 'Google_Service_Calendar_EventReminder';
3388
  protected $defaultRemindersDataType = 'array';
3389
  public $description;
3390
  public $etag;
3391
  protected $itemsType = 'Google_Service_Calendar_Event';
3392
  protected $itemsDataType = 'array';
3393
  public $kind;
3394
  public $nextPageToken;
3395
  public $nextSyncToken;
3396
  public $summary;
3397
  public $timeZone;
3398
  public $updated;
3399
3400
3401
  public function setAccessRole($accessRole)
3402
  {
3403
    $this->accessRole = $accessRole;
3404
  }
3405
  public function getAccessRole()
3406
  {
3407
    return $this->accessRole;
3408
  }
3409
  public function setDefaultReminders($defaultReminders)
3410
  {
3411
    $this->defaultReminders = $defaultReminders;
3412
  }
3413
  public function getDefaultReminders()
3414
  {
3415
    return $this->defaultReminders;
3416
  }
3417
  public function setDescription($description)
3418
  {
3419
    $this->description = $description;
3420
  }
3421
  public function getDescription()
3422
  {
3423
    return $this->description;
3424
  }
3425
  public function setEtag($etag)
3426
  {
3427
    $this->etag = $etag;
3428
  }
3429
  public function getEtag()
3430
  {
3431
    return $this->etag;
3432
  }
3433
  public function setItems($items)
3434
  {
3435
    $this->items = $items;
0 ignored issues
show
Bug introduced by
The property items does not exist. Did you maybe forget to declare it?

In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:

class MyClass { }

$x = new MyClass();
$x->foo = true;

Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion:

class MyClass {
    public $foo;
}

$x = new MyClass();
$x->foo = true;
Loading history...
3436
  }
3437
  public function getItems()
3438
  {
3439
    return $this->items;
3440
  }
3441
  public function setKind($kind)
3442
  {
3443
    $this->kind = $kind;
3444
  }
3445
  public function getKind()
3446
  {
3447
    return $this->kind;
3448
  }
3449
  public function setNextPageToken($nextPageToken)
3450
  {
3451
    $this->nextPageToken = $nextPageToken;
3452
  }
3453
  public function getNextPageToken()
3454
  {
3455
    return $this->nextPageToken;
3456
  }
3457
  public function setNextSyncToken($nextSyncToken)
3458
  {
3459
    $this->nextSyncToken = $nextSyncToken;
3460
  }
3461
  public function getNextSyncToken()
3462
  {
3463
    return $this->nextSyncToken;
3464
  }
3465
  public function setSummary($summary)
3466
  {
3467
    $this->summary = $summary;
3468
  }
3469
  public function getSummary()
3470
  {
3471
    return $this->summary;
3472
  }
3473
  public function setTimeZone($timeZone)
3474
  {
3475
    $this->timeZone = $timeZone;
3476
  }
3477
  public function getTimeZone()
3478
  {
3479
    return $this->timeZone;
3480
  }
3481
  public function setUpdated($updated)
3482
  {
3483
    $this->updated = $updated;
3484
  }
3485
  public function getUpdated()
3486
  {
3487
    return $this->updated;
3488
  }
3489
}
3490
3491 View Code Duplication
class Google_Service_Calendar_FreeBusyCalendar extends Google_Collection
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
3492
{
3493
  protected $collection_key = 'errors';
3494
  protected $internal_gapi_mappings = array(
3495
  );
3496
  protected $busyType = 'Google_Service_Calendar_TimePeriod';
3497
  protected $busyDataType = 'array';
3498
  protected $errorsType = 'Google_Service_Calendar_Error';
3499
  protected $errorsDataType = 'array';
3500
3501
3502
  public function setBusy($busy)
3503
  {
3504
    $this->busy = $busy;
0 ignored issues
show
Bug introduced by
The property busy does not exist. Did you maybe forget to declare it?

In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:

class MyClass { }

$x = new MyClass();
$x->foo = true;

Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion:

class MyClass {
    public $foo;
}

$x = new MyClass();
$x->foo = true;
Loading history...
3505
  }
3506
  public function getBusy()
3507
  {
3508
    return $this->busy;
3509
  }
3510
  public function setErrors($errors)
3511
  {
3512
    $this->errors = $errors;
3513
  }
3514
  public function getErrors()
3515
  {
3516
    return $this->errors;
3517
  }
3518
}
3519
3520 View Code Duplication
class Google_Service_Calendar_FreeBusyGroup extends Google_Collection
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
3521
{
3522
  protected $collection_key = 'errors';
3523
  protected $internal_gapi_mappings = array(
3524
  );
3525
  public $calendars;
3526
  protected $errorsType = 'Google_Service_Calendar_Error';
3527
  protected $errorsDataType = 'array';
3528
3529
3530
  public function setCalendars($calendars)
3531
  {
3532
    $this->calendars = $calendars;
3533
  }
3534
  public function getCalendars()
3535
  {
3536
    return $this->calendars;
3537
  }
3538
  public function setErrors($errors)
3539
  {
3540
    $this->errors = $errors;
3541
  }
3542
  public function getErrors()
3543
  {
3544
    return $this->errors;
3545
  }
3546
}
3547
3548
class Google_Service_Calendar_FreeBusyRequest extends Google_Collection
3549
{
3550
  protected $collection_key = 'items';
3551
  protected $internal_gapi_mappings = array(
3552
  );
3553
  public $calendarExpansionMax;
3554
  public $groupExpansionMax;
3555
  protected $itemsType = 'Google_Service_Calendar_FreeBusyRequestItem';
3556
  protected $itemsDataType = 'array';
3557
  public $timeMax;
3558
  public $timeMin;
3559
  public $timeZone;
3560
3561
3562
  public function setCalendarExpansionMax($calendarExpansionMax)
3563
  {
3564
    $this->calendarExpansionMax = $calendarExpansionMax;
3565
  }
3566
  public function getCalendarExpansionMax()
3567
  {
3568
    return $this->calendarExpansionMax;
3569
  }
3570
  public function setGroupExpansionMax($groupExpansionMax)
3571
  {
3572
    $this->groupExpansionMax = $groupExpansionMax;
3573
  }
3574
  public function getGroupExpansionMax()
3575
  {
3576
    return $this->groupExpansionMax;
3577
  }
3578
  public function setItems($items)
3579
  {
3580
    $this->items = $items;
0 ignored issues
show
Bug introduced by
The property items does not exist. Did you maybe forget to declare it?

In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:

class MyClass { }

$x = new MyClass();
$x->foo = true;

Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion:

class MyClass {
    public $foo;
}

$x = new MyClass();
$x->foo = true;
Loading history...
3581
  }
3582
  public function getItems()
3583
  {
3584
    return $this->items;
3585
  }
3586
  public function setTimeMax($timeMax)
3587
  {
3588
    $this->timeMax = $timeMax;
3589
  }
3590
  public function getTimeMax()
3591
  {
3592
    return $this->timeMax;
3593
  }
3594
  public function setTimeMin($timeMin)
3595
  {
3596
    $this->timeMin = $timeMin;
3597
  }
3598
  public function getTimeMin()
3599
  {
3600
    return $this->timeMin;
3601
  }
3602
  public function setTimeZone($timeZone)
3603
  {
3604
    $this->timeZone = $timeZone;
3605
  }
3606
  public function getTimeZone()
3607
  {
3608
    return $this->timeZone;
3609
  }
3610
}
3611
3612
class Google_Service_Calendar_FreeBusyRequestItem extends Google_Model
3613
{
3614
  protected $internal_gapi_mappings = array(
3615
  );
3616
  public $id;
3617
3618
3619
  public function setId($id)
3620
  {
3621
    $this->id = $id;
3622
  }
3623
  public function getId()
3624
  {
3625
    return $this->id;
3626
  }
3627
}
3628
3629
class Google_Service_Calendar_FreeBusyResponse extends Google_Model
3630
{
3631
  protected $internal_gapi_mappings = array(
3632
  );
3633
  protected $calendarsType = 'Google_Service_Calendar_FreeBusyCalendar';
3634
  protected $calendarsDataType = 'map';
3635
  protected $groupsType = 'Google_Service_Calendar_FreeBusyGroup';
3636
  protected $groupsDataType = 'map';
3637
  public $kind;
3638
  public $timeMax;
3639
  public $timeMin;
3640
3641
3642
  public function setCalendars($calendars)
3643
  {
3644
    $this->calendars = $calendars;
3645
  }
3646
  public function getCalendars()
3647
  {
3648
    return $this->calendars;
3649
  }
3650
  public function setGroups($groups)
3651
  {
3652
    $this->groups = $groups;
3653
  }
3654
  public function getGroups()
3655
  {
3656
    return $this->groups;
3657
  }
3658
  public function setKind($kind)
3659
  {
3660
    $this->kind = $kind;
3661
  }
3662
  public function getKind()
3663
  {
3664
    return $this->kind;
3665
  }
3666
  public function setTimeMax($timeMax)
3667
  {
3668
    $this->timeMax = $timeMax;
3669
  }
3670
  public function getTimeMax()
3671
  {
3672
    return $this->timeMax;
3673
  }
3674
  public function setTimeMin($timeMin)
3675
  {
3676
    $this->timeMin = $timeMin;
3677
  }
3678
  public function getTimeMin()
3679
  {
3680
    return $this->timeMin;
3681
  }
3682
}
3683
3684
class Google_Service_Calendar_FreeBusyResponseCalendars extends Google_Model
3685
{
3686
}
3687
3688
class Google_Service_Calendar_FreeBusyResponseGroups extends Google_Model
3689
{
3690
}
3691
3692
class Google_Service_Calendar_Setting extends Google_Model
3693
{
3694
  protected $internal_gapi_mappings = array(
3695
  );
3696
  public $etag;
3697
  public $id;
3698
  public $kind;
3699
  public $value;
3700
3701
3702
  public function setEtag($etag)
3703
  {
3704
    $this->etag = $etag;
3705
  }
3706
  public function getEtag()
3707
  {
3708
    return $this->etag;
3709
  }
3710
  public function setId($id)
3711
  {
3712
    $this->id = $id;
3713
  }
3714
  public function getId()
3715
  {
3716
    return $this->id;
3717
  }
3718
  public function setKind($kind)
3719
  {
3720
    $this->kind = $kind;
3721
  }
3722
  public function getKind()
3723
  {
3724
    return $this->kind;
3725
  }
3726
  public function setValue($value)
3727
  {
3728
    $this->value = $value;
3729
  }
3730
  public function getValue()
3731
  {
3732
    return $this->value;
3733
  }
3734
}
3735
3736 View Code Duplication
class Google_Service_Calendar_Settings extends Google_Collection
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
3737
{
3738
  protected $collection_key = 'items';
3739
  protected $internal_gapi_mappings = array(
3740
  );
3741
  public $etag;
3742
  protected $itemsType = 'Google_Service_Calendar_Setting';
3743
  protected $itemsDataType = 'array';
3744
  public $kind;
3745
  public $nextPageToken;
3746
  public $nextSyncToken;
3747
3748
3749
  public function setEtag($etag)
3750
  {
3751
    $this->etag = $etag;
3752
  }
3753
  public function getEtag()
3754
  {
3755
    return $this->etag;
3756
  }
3757
  public function setItems($items)
3758
  {
3759
    $this->items = $items;
0 ignored issues
show
Bug introduced by
The property items does not exist. Did you maybe forget to declare it?

In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:

class MyClass { }

$x = new MyClass();
$x->foo = true;

Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion:

class MyClass {
    public $foo;
}

$x = new MyClass();
$x->foo = true;
Loading history...
3760
  }
3761
  public function getItems()
3762
  {
3763
    return $this->items;
3764
  }
3765
  public function setKind($kind)
3766
  {
3767
    $this->kind = $kind;
3768
  }
3769
  public function getKind()
3770
  {
3771
    return $this->kind;
3772
  }
3773
  public function setNextPageToken($nextPageToken)
3774
  {
3775
    $this->nextPageToken = $nextPageToken;
3776
  }
3777
  public function getNextPageToken()
3778
  {
3779
    return $this->nextPageToken;
3780
  }
3781
  public function setNextSyncToken($nextSyncToken)
3782
  {
3783
    $this->nextSyncToken = $nextSyncToken;
3784
  }
3785
  public function getNextSyncToken()
3786
  {
3787
    return $this->nextSyncToken;
3788
  }
3789
}
3790
3791 View Code Duplication
class Google_Service_Calendar_TimePeriod extends Google_Model
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
3792
{
3793
  protected $internal_gapi_mappings = array(
3794
  );
3795
  public $end;
3796
  public $start;
3797
3798
3799
  public function setEnd($end)
3800
  {
3801
    $this->end = $end;
3802
  }
3803
  public function getEnd()
3804
  {
3805
    return $this->end;
3806
  }
3807
  public function setStart($start)
3808
  {
3809
    $this->start = $start;
3810
  }
3811
  public function getStart()
3812
  {
3813
    return $this->start;
3814
  }
3815
}
3816