1 | <?php |
||
26 | class UndoDownvoteAnswer |
||
27 | { |
||
28 | private const URL = '/answers/{id}/downvote/undo'; |
||
29 | |||
30 | private $client; |
||
31 | private $serializer; |
||
32 | private $authentication; |
||
33 | |||
34 | public function __construct(HttpClient $client, Serializer $serializer, Authentication $authentication) |
||
40 | |||
41 | public function __invoke(string $id, array $parameters = AnswerApi::QUERY_PARAMS) |
||
50 | |||
51 | private function url(string $id) : string |
||
55 | |||
56 | private function mergeAuthenticationIntoParameters(array $parameters) : array |
||
60 | } |
||
61 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@return
annotation as described here.