1 | <?php |
||
11 | class Client |
||
12 | { |
||
13 | /** |
||
14 | * @var TaxJarClient |
||
15 | */ |
||
16 | private $apiClient; |
||
17 | |||
18 | /** |
||
19 | * @var CacheItemPoolInterface |
||
20 | */ |
||
21 | private $cacheItemPool; |
||
22 | |||
23 | /** |
||
24 | * @param TaxJarClient $apiClient |
||
25 | */ |
||
26 | 8 | public function __construct(TaxJarClient $apiClient) |
|
30 | |||
31 | /** |
||
32 | * @param TaxRequest $order |
||
33 | * |
||
34 | * @return TaxResponse |
||
35 | */ |
||
36 | 6 | public function getTaxesForOrder(TaxRequest $order) |
|
55 | |||
56 | /** |
||
57 | * @param OrderTransaction $orderTransaction |
||
58 | * |
||
59 | * @return TaxResponse |
||
60 | */ |
||
61 | 2 | public function createOrderTransaction(OrderTransaction $orderTransaction) |
|
65 | |||
66 | /** |
||
67 | * @param CacheItemPoolInterface $cacheItemPool |
||
68 | */ |
||
69 | 4 | public function setCacheItemPool(CacheItemPoolInterface $cacheItemPool) |
|
73 | } |
||
74 |