1 | <?php |
||
23 | class Client extends BaseClient |
||
24 | { |
||
25 | /** |
||
26 | * @var \EasyWeChat\OpenPlatform\Application |
||
27 | */ |
||
28 | protected $component; |
||
29 | |||
30 | /** |
||
31 | * Client constructor. |
||
32 | * |
||
33 | * @param \EasyWeChat\Kernel\ServiceContainer $app |
||
34 | * @param \EasyWeChat\OpenPlatform\Application $component |
||
35 | */ |
||
36 | public function __construct(ServiceContainer $app, Application $component) |
||
42 | |||
43 | /** |
||
44 | * Get session info by code. |
||
45 | * |
||
46 | * @param string $code |
||
47 | * |
||
48 | * @return \Psr\Http\Message\ResponseInterface|\EasyWeChat\Kernel\Support\Collection|array|object|string |
||
49 | */ |
||
50 | public function session(string $code) |
||
62 | } |
||
63 |