1 | <?php |
||
19 | abstract class AbstractApiClient implements ApiClientInterface |
||
20 | { |
||
21 | const MAX_RETRY_LIMIT = 3; |
||
22 | |||
23 | /** |
||
24 | * HTTP client. |
||
25 | * |
||
26 | * @var ClientInterface |
||
27 | */ |
||
28 | protected $client; |
||
29 | |||
30 | /** |
||
31 | * Authentication object. |
||
32 | * |
||
33 | * @var AuthenticationInterface |
||
34 | */ |
||
35 | protected $authenticator; |
||
36 | |||
37 | /** |
||
38 | * Retry limit counter for authentication. |
||
39 | * |
||
40 | * @var int |
||
41 | */ |
||
42 | protected $authenticationRetryLimit = 0; |
||
43 | |||
44 | /** |
||
45 | * {@inheritdoc} |
||
46 | */ |
||
47 | public function __construct( |
||
54 | } |
||
55 |