1 | <?php |
||
9 | class AuthClient extends AbstractClient |
||
10 | { |
||
11 | /** |
||
12 | * Request timeout |
||
13 | * Bad Gateway |
||
14 | * Service Unavailable |
||
15 | * Gateway timeout |
||
16 | * |
||
17 | * @var array |
||
18 | */ |
||
19 | protected static $retryCodes = [408, 502, 503, 504]; |
||
20 | |||
21 | /** |
||
22 | * @var Credentials |
||
23 | */ |
||
24 | protected $credentials; |
||
25 | |||
26 | /** |
||
27 | * @param Credentials $credentials |
||
28 | */ |
||
29 | public function setCredentials(Credentials $credentials) |
||
33 | |||
34 | /** |
||
35 | * @throws \Guzzle\Common\Exception\InvalidArgumentException |
||
36 | * @throws \Exception |
||
37 | * @return AuthResponse |
||
38 | */ |
||
39 | public function auth() |
||
57 | } |
||
58 |
This check looks for a call to a parent method whose name is different than the method from which it is called.
Consider the following code:
The
getFirstName()
method in theSon
calls the wrong method in the parent class.