1 | <?php |
||
9 | class PostBuilder extends ModelBuilder |
||
10 | { |
||
11 | /** |
||
12 | * @param $message |
||
13 | * |
||
14 | * @return $this |
||
15 | */ |
||
16 | 2 | public function setMessage($message) |
|
22 | |||
23 | /** |
||
24 | * @param $channelId |
||
25 | * |
||
26 | * @return $this |
||
27 | */ |
||
28 | 2 | public function setChannelId($channelId) |
|
34 | |||
35 | /** |
||
36 | * Set the post ID to comment on. |
||
37 | * |
||
38 | * @param $postId |
||
39 | * |
||
40 | * @return $this |
||
41 | */ |
||
42 | 1 | public function setRootId(string $postId) |
|
48 | |||
49 | /** |
||
50 | * A list of file IDs to associate with the post. |
||
51 | * |
||
52 | * @param $fileIds |
||
53 | * |
||
54 | * @return $this |
||
55 | */ |
||
56 | 1 | public function setFileIds(array $fileIds) |
|
62 | |||
63 | /** |
||
64 | * Set if the post is pinned. |
||
65 | * |
||
66 | * @param bool $isPinned |
||
67 | * |
||
68 | * @return $this |
||
69 | */ |
||
70 | 1 | public function setIsPinned(bool $isPinned) |
|
76 | |||
77 | /** |
||
78 | * {@inheritdoc} |
||
79 | */ |
||
80 | 5 | protected function getRequiredFields($buildType = self::BUILD_FOR_CREATE) |
|
89 | } |
||
90 |