| 1 | <?php |
||
| 20 | class Manager |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * @var Credential |
||
| 24 | */ |
||
| 25 | protected $credential; |
||
| 26 | /** |
||
| 27 | * @var ClientInterface |
||
| 28 | */ |
||
| 29 | protected $httpClient; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param Credential $credential |
||
| 33 | * @param ClientInterface $httpClient |
||
| 34 | */ |
||
| 35 | 4 | public function __construct(Credential $credential, ClientInterface $httpClient = null) |
|
| 40 | |||
| 41 | /** |
||
| 42 | * @param string $seconds |
||
| 43 | * |
||
| 44 | * @return Manager |
||
| 45 | */ |
||
| 46 | 1 | public function setTimeout($seconds) |
|
| 52 | |||
| 53 | /** |
||
| 54 | * @param int $seconds |
||
| 55 | * |
||
| 56 | * @return Manager |
||
| 57 | */ |
||
| 58 | 1 | public function setConnectTimeout($seconds) |
|
| 64 | |||
| 65 | /** |
||
| 66 | * @param string $hostname |
||
| 67 | * |
||
| 68 | * @return Manager |
||
| 69 | */ |
||
| 70 | 1 | public function setHostname($hostname) |
|
| 76 | |||
| 77 | /** |
||
| 78 | * @param Chargeback $chargeback |
||
| 79 | * |
||
| 80 | * @return true |
||
| 81 | * |
||
| 82 | * @throws Exception\ExceptionAbstract |
||
| 83 | */ |
||
| 84 | 1 | public function report(Chargeback $chargeback) |
|
| 88 | } |
||
| 89 |