mmainstreet /
jodel-web
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
| 1 | <?php |
||
| 2 | class Downvote extends AbstractRequest |
||
| 3 | { |
||
| 4 | public $postId; |
||
| 5 | |||
| 6 | function getApiEndPoint() |
||
|
0 ignored issues
–
show
|
|||
| 7 | { |
||
| 8 | return '/v2/posts/' . $this->postId . '/downvote'; |
||
| 9 | } |
||
| 10 | function getPayload() |
||
|
0 ignored issues
–
show
|
|||
| 11 | { |
||
| 12 | return array( |
||
| 13 | ); |
||
| 14 | } |
||
| 15 | function getMethod() |
||
| 16 | { |
||
| 17 | return 'PUT'; |
||
| 18 | } |
||
| 19 | } |
||
| 20 | |||
|
0 ignored issues
–
show
|
|||
| 21 |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.