1 | <?php |
||
25 | class UsersByIds |
||
26 | { |
||
27 | private const URL = '/users/{ids}'; |
||
28 | |||
29 | private $client; |
||
30 | private $serializer; |
||
31 | |||
32 | public function __construct(HttpClient $client, Serializer $serializer) |
||
37 | |||
38 | public function __invoke($ids, array $parameters = UserApi::QUERY_PARAMS) |
||
47 | |||
48 | private function url($ids) : string |
||
52 | } |
||
53 |
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.