1 | <?php |
||
12 | class ClientRepository |
||
13 | { |
||
14 | /** |
||
15 | * @var array<Client> |
||
16 | */ |
||
17 | private $clients; |
||
18 | |||
19 | /** |
||
20 | * @param array $clients |
||
21 | */ |
||
22 | public function __construct(array $clients = array()) |
||
26 | |||
27 | /** |
||
28 | * Get client from his id |
||
29 | * |
||
30 | * @param string $id |
||
31 | * |
||
32 | * @return Elasticsearch\Client |
||
|
|||
33 | */ |
||
34 | public function get($id) |
||
42 | } |
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.