Total Complexity | 2 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | abstract class Base |
||
26 | { |
||
27 | private $baseUri = 'http://gw.api.taobao.com/'; |
||
28 | |||
29 | protected $client; |
||
30 | |||
31 | protected $requester; |
||
32 | |||
33 | protected $pool; |
||
34 | |||
35 | /** |
||
36 | * Base constructor. |
||
37 | * @param ClientInterface $client |
||
38 | * @param RequesterInterface $requester |
||
39 | * @param PoolInterface $pool |
||
40 | */ |
||
41 | public function __construct( |
||
42 | ClientInterface $client, |
||
43 | RequesterInterface $requester, |
||
44 | PoolInterface $pool |
||
45 | ) { |
||
46 | $this->client = $client; |
||
47 | $this->requester = $requester; |
||
48 | $this->pool = $pool; |
||
49 | $this->client->generateClient(['base_uri' => $this->baseUri]); |
||
|
|||
50 | } |
||
51 | |||
52 | public function build(ServiceRequestInterface $serviceRequest, DtoInterface $dto) |
||
58 | } |
||
59 | } |
||
60 |