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 Comment extends \Google\Collection
21{
22  protected $collection_key = 'mentionedUsers';
23  protected $assignmentType = Assignment::class;
24  protected $assignmentDataType = '';
25  protected $mentionedUsersType = User::class;
26  protected $mentionedUsersDataType = 'array';
27  protected $postType = Post::class;
28  protected $postDataType = '';
29  protected $suggestionType = Suggestion::class;
30  protected $suggestionDataType = '';
31
32  /**
33   * @param Assignment
34   */
35  public function setAssignment(Assignment $assignment)
36  {
37    $this->assignment = $assignment;
38  }
39  /**
40   * @return Assignment
41   */
42  public function getAssignment()
43  {
44    return $this->assignment;
45  }
46  /**
47   * @param User[]
48   */
49  public function setMentionedUsers($mentionedUsers)
50  {
51    $this->mentionedUsers = $mentionedUsers;
52  }
53  /**
54   * @return User[]
55   */
56  public function getMentionedUsers()
57  {
58    return $this->mentionedUsers;
59  }
60  /**
61   * @param Post
62   */
63  public function setPost(Post $post)
64  {
65    $this->post = $post;
66  }
67  /**
68   * @return Post
69   */
70  public function getPost()
71  {
72    return $this->post;
73  }
74  /**
75   * @param Suggestion
76   */
77  public function setSuggestion(Suggestion $suggestion)
78  {
79    $this->suggestion = $suggestion;
80  }
81  /**
82   * @return Suggestion
83   */
84  public function getSuggestion()
85  {
86    return $this->suggestion;
87  }
88}
89
90// Adding a class alias for backwards compatibility with the previous class name.
91class_alias(Comment::class, 'Google_Service_DriveActivity_Comment');
92