1 | <?php |
||
28 | class Api extends AbstractApi implements ImmutableApiInterface |
||
29 | { |
||
30 | /** |
||
31 | * @param string $accessToken |
||
32 | * |
||
33 | * @throws \InvalidArgumentException |
||
34 | * |
||
35 | * @return $this |
||
|
|||
36 | */ |
||
37 | 1 | public function recreateForNewAccessToken($accessToken): self |
|
43 | |||
44 | /** |
||
45 | * @param ApiExceptionTransformerInterface $apiExceptionTransformer |
||
46 | * |
||
47 | * @throws \InvalidArgumentException |
||
48 | * |
||
49 | * @return $this |
||
50 | */ |
||
51 | 1 | public function recreateForNewApiExceptionTransformer(ApiExceptionTransformerInterface $apiExceptionTransformer): self |
|
55 | |||
56 | /** |
||
57 | * @param ResponseTransformerInterface $responseTransformer |
||
58 | * |
||
59 | * @throws \InvalidArgumentException |
||
60 | * |
||
61 | * @return $this |
||
62 | */ |
||
63 | 1 | public function recreateForNewResponseTransformer(ResponseTransformerInterface $responseTransformer): self |
|
67 | } |
||
68 |
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.