1<?php 2/* 3 * Copyright 2014 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 18namespace Google\Service\DriveActivity; 19 20class Owner extends \Google\Model 21{ 22 protected $domainType = Domain::class; 23 protected $domainDataType = ''; 24 protected $driveType = DriveReference::class; 25 protected $driveDataType = ''; 26 protected $teamDriveType = TeamDriveReference::class; 27 protected $teamDriveDataType = ''; 28 protected $userType = User::class; 29 protected $userDataType = ''; 30 31 /** 32 * @param Domain 33 */ 34 public function setDomain(Domain $domain) 35 { 36 $this->domain = $domain; 37 } 38 /** 39 * @return Domain 40 */ 41 public function getDomain() 42 { 43 return $this->domain; 44 } 45 /** 46 * @param DriveReference 47 */ 48 public function setDrive(DriveReference $drive) 49 { 50 $this->drive = $drive; 51 } 52 /** 53 * @return DriveReference 54 */ 55 public function getDrive() 56 { 57 return $this->drive; 58 } 59 /** 60 * @param TeamDriveReference 61 */ 62 public function setTeamDrive(TeamDriveReference $teamDrive) 63 { 64 $this->teamDrive = $teamDrive; 65 } 66 /** 67 * @return TeamDriveReference 68 */ 69 public function getTeamDrive() 70 { 71 return $this->teamDrive; 72 } 73 /** 74 * @param User 75 */ 76 public function setUser(User $user) 77 { 78 $this->user = $user; 79 } 80 /** 81 * @return User 82 */ 83 public function getUser() 84 { 85 return $this->user; 86 } 87} 88 89// Adding a class alias for backwards compatibility with the previous class name. 90class_alias(Owner::class, 'Google_Service_DriveActivity_Owner'); 91