1 | <?php |
||
7 | class Comments extends Endpoint |
||
8 | { |
||
9 | use HasView; |
||
10 | |||
11 | const RESOURCE = 'applicant_comments'; |
||
12 | |||
13 | const COMMENT_TYPE_PUBLIC = 'coworkers'; |
||
14 | const COMMENT_TYPE_PRIVATE = 'owner'; |
||
15 | |||
16 | /** |
||
17 | * @param string $applicantId |
||
18 | * @param string $text |
||
19 | * @param string $type |
||
20 | * @return mixed |
||
21 | */ |
||
22 | public function create($applicantId, $text, $type = self::COMMENT_TYPE_PUBLIC) |
||
26 | |||
27 | /** |
||
28 | * @param string $applicantId |
||
29 | * @param string $text |
||
30 | * @return mixed |
||
31 | */ |
||
32 | public function createPrivate($applicantId, $text) |
||
36 | |||
37 | /** |
||
38 | * @param string $applicantId |
||
39 | * @param string $commentId |
||
40 | * @param string $text |
||
41 | * @param string $type |
||
42 | * @return mixed |
||
43 | */ |
||
44 | public function edit($applicantId, $commentId, $text, $type = self::COMMENT_TYPE_PUBLIC) |
||
51 | |||
52 | /** |
||
53 | * @param string $applicantId |
||
54 | * @param string $commentId |
||
55 | * @param string $text |
||
56 | * @return mixed |
||
57 | */ |
||
58 | public function editPrivate($applicantId, $commentId, $text) |
||
62 | |||
63 | /** |
||
64 | * @param string $applicantId |
||
65 | * @param string $commentId |
||
66 | */ |
||
67 | public function delete($applicantId, $commentId) |
||
71 | } |