1 | <?php |
||
22 | final class InstapushClient |
||
23 | { |
||
24 | /** @var \Http\Client\HttpClient */ |
||
25 | private $httpClient; |
||
26 | |||
27 | /** @var \Http\Message\RequestFactory */ |
||
28 | private $requestFactory; |
||
29 | |||
30 | /** @var \Fnayou\InstapushPHP\Transformer\TransformerInterface */ |
||
31 | private $transformer; |
||
32 | |||
33 | /** |
||
34 | * @param \Http\Client\HttpClient $httpClient |
||
35 | * @param \Http\Message\RequestFactory|null $requestFactory |
||
36 | * @param \Fnayou\InstapushPHP\Transformer\TransformerInterface|null $transformer |
||
37 | */ |
||
38 | public function __construct( |
||
47 | |||
48 | /** |
||
49 | * @param \Fnayou\InstapushPHP\HttpClientConfigurator $httpClientConfigurator |
||
50 | * @param \Http\Message\RequestFactory|null $requestFactory |
||
51 | * @param \Fnayou\InstapushPHP\Transformer\TransformerInterface|null $hydrator |
||
52 | * |
||
53 | * @return $this |
||
54 | */ |
||
55 | public static function configure( |
||
64 | |||
65 | /** |
||
66 | * @param string $userToken |
||
67 | * @param string $appIdentifier |
||
68 | * @param string $appSecret |
||
69 | * |
||
70 | * @return $this |
||
71 | */ |
||
72 | public static function create(string $userToken, string $appIdentifier, string $appSecret) |
||
79 | } |
||
80 |
This check looks at variables that have been passed in as parameters and are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.