1 | <?php |
||
31 | class GraphGroup extends GraphNode |
||
32 | { |
||
33 | /** |
||
34 | * @var array Maps object key names to GraphNode types. |
||
35 | */ |
||
36 | protected static $graphObjectMap = [ |
||
37 | 'cover' => '\Facebook\GraphNodes\GraphCoverPhoto', |
||
38 | 'venue' => '\Facebook\GraphNodes\GraphLocation', |
||
39 | ]; |
||
40 | |||
41 | /** |
||
42 | * Returns the `id` (The Group ID) as string if present. |
||
43 | * |
||
44 | * @return string|null |
||
45 | */ |
||
46 | public function getId() |
||
50 | |||
51 | /** |
||
52 | * Returns the `cover` (The cover photo of the Group) as GraphCoverPhoto if present. |
||
53 | * |
||
54 | * @return GraphCoverPhoto|null |
||
55 | */ |
||
56 | public function getCover() |
||
60 | |||
61 | /** |
||
62 | * Returns the `description` (A brief description of the Group) as string if present. |
||
63 | * |
||
64 | * @return string|null |
||
65 | */ |
||
66 | public function getDescription() |
||
70 | |||
71 | /** |
||
72 | * Returns the `email` (The email address to upload content to the Group. Only current members of the Group can use this) as string if present. |
||
73 | * |
||
74 | * @return string|null |
||
75 | */ |
||
76 | public function getEmail() |
||
80 | |||
81 | /** |
||
82 | * Returns the `icon` (The URL for the Group's icon) as string if present. |
||
83 | * |
||
84 | * @return string|null |
||
85 | */ |
||
86 | public function getIcon() |
||
90 | |||
91 | /** |
||
92 | * Returns the `link` (The Group's website) as string if present. |
||
93 | * |
||
94 | * @return string|null |
||
95 | */ |
||
96 | public function getLink() |
||
100 | |||
101 | /** |
||
102 | * Returns the `name` (The name of the Group) as string if present. |
||
103 | * |
||
104 | * @return string|null |
||
105 | */ |
||
106 | public function getName() |
||
110 | |||
111 | /** |
||
112 | * Returns the `member_request_count` (Number of people asking to join the group.) as int if present. |
||
113 | * |
||
114 | * @return int|null |
||
115 | */ |
||
116 | public function getMemberRequestCount() |
||
120 | |||
121 | /** |
||
122 | * Returns the `owner` (The profile that created this Group) as GraphNode if present. |
||
123 | * |
||
124 | * @return GraphNode|null |
||
125 | */ |
||
126 | public function getOwner() |
||
130 | |||
131 | /** |
||
132 | * Returns the `parent` (The parent Group of this Group, if it exists) as GraphNode if present. |
||
133 | * |
||
134 | * @return GraphNode|null |
||
135 | */ |
||
136 | public function getParent() |
||
140 | |||
141 | /** |
||
142 | * Returns the `privacy` (The privacy setting of the Group) as string if present. |
||
143 | * |
||
144 | * @return string|null |
||
145 | */ |
||
146 | public function getPrivacy() |
||
150 | |||
151 | /** |
||
152 | * Returns the `updated_time` (The last time the Group was updated (this includes changes in the Group's properties and changes in posts and comments if user can see them)) as \DateTime if present. |
||
153 | * |
||
154 | * @return \DateTime|null |
||
155 | */ |
||
156 | public function getUpdatedTime() |
||
160 | |||
161 | /** |
||
162 | * Returns the `venue` (The location for the Group) as GraphLocation if present. |
||
163 | * |
||
164 | * @return GraphLocation|null |
||
165 | */ |
||
166 | public function getVenue() |
||
170 | } |
||
171 |