1 | <?php |
||
19 | class GroupsRenamePayload extends AbstractPayload |
||
20 | { |
||
21 | /** |
||
22 | * Slack seems to want to call this option "channel", but I can't agree with that (the format of the value is different), |
||
23 | * and will just pretend to my users it's a "group" (ID). |
||
24 | * |
||
25 | * @var string |
||
26 | */ |
||
27 | private $channel; |
||
28 | |||
29 | /** |
||
30 | * @var string |
||
31 | */ |
||
32 | private $name; |
||
33 | |||
34 | /** |
||
35 | * @param string $groupId ID of the group to rename |
||
36 | */ |
||
37 | 1 | public function setGroupId($groupId) |
|
41 | |||
42 | /** |
||
43 | * @return string ID of the group to rename |
||
44 | */ |
||
45 | 1 | public function getGroupId() |
|
49 | |||
50 | /** |
||
51 | * @param string $name New name for group |
||
52 | */ |
||
53 | 1 | public function setName($name) |
|
57 | |||
58 | /** |
||
59 | * @return string New name for group |
||
60 | */ |
||
61 | 1 | public function getName() |
|
65 | |||
66 | /** |
||
67 | * @inheritdoc |
||
68 | */ |
||
69 | 1 | public function getMethod() |
|
73 | } |
||
74 |