source: vendor/google/apiclient-services/src/Safebrowsing/ThreatHit.php@ f9c482b

Last change on this file since f9c482b was f9c482b, checked in by Vlado 222039 <vlado.popovski@…>, 9 days ago

Upload new project files

  • Property mode set to 100644
File size: 2.7 KB
Line 
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\Safebrowsing;
19
20class ThreatHit extends \Google\Collection
21{
22 protected $collection_key = 'resources';
23 protected $clientInfoType = ClientInfo::class;
24 protected $clientInfoDataType = '';
25 public $clientInfo;
26 protected $entryType = ThreatEntry::class;
27 protected $entryDataType = '';
28 public $entry;
29 /**
30 * @var string
31 */
32 public $platformType;
33 protected $resourcesType = ThreatSource::class;
34 protected $resourcesDataType = 'array';
35 public $resources;
36 /**
37 * @var string
38 */
39 public $threatType;
40 protected $userInfoType = UserInfo::class;
41 protected $userInfoDataType = '';
42 public $userInfo;
43
44 /**
45 * @param ClientInfo
46 */
47 public function setClientInfo(ClientInfo $clientInfo)
48 {
49 $this->clientInfo = $clientInfo;
50 }
51 /**
52 * @return ClientInfo
53 */
54 public function getClientInfo()
55 {
56 return $this->clientInfo;
57 }
58 /**
59 * @param ThreatEntry
60 */
61 public function setEntry(ThreatEntry $entry)
62 {
63 $this->entry = $entry;
64 }
65 /**
66 * @return ThreatEntry
67 */
68 public function getEntry()
69 {
70 return $this->entry;
71 }
72 /**
73 * @param string
74 */
75 public function setPlatformType($platformType)
76 {
77 $this->platformType = $platformType;
78 }
79 /**
80 * @return string
81 */
82 public function getPlatformType()
83 {
84 return $this->platformType;
85 }
86 /**
87 * @param ThreatSource[]
88 */
89 public function setResources($resources)
90 {
91 $this->resources = $resources;
92 }
93 /**
94 * @return ThreatSource[]
95 */
96 public function getResources()
97 {
98 return $this->resources;
99 }
100 /**
101 * @param string
102 */
103 public function setThreatType($threatType)
104 {
105 $this->threatType = $threatType;
106 }
107 /**
108 * @return string
109 */
110 public function getThreatType()
111 {
112 return $this->threatType;
113 }
114 /**
115 * @param UserInfo
116 */
117 public function setUserInfo(UserInfo $userInfo)
118 {
119 $this->userInfo = $userInfo;
120 }
121 /**
122 * @return UserInfo
123 */
124 public function getUserInfo()
125 {
126 return $this->userInfo;
127 }
128}
129
130// Adding a class alias for backwards compatibility with the previous class name.
131class_alias(ThreatHit::class, 'Google_Service_Safebrowsing_ThreatHit');
Note: See TracBrowser for help on using the repository browser.