1 | <?php |
||
34 | class Gateway{ |
||
35 | |||
36 | /** |
||
37 | * @var \chillerlan\Threema\Endpoint\EndpointInterface |
||
38 | */ |
||
39 | protected $endpointInterface; |
||
40 | |||
41 | /** |
||
42 | * @var array[\ReflectionMethod] |
||
43 | */ |
||
44 | protected $endpointInterfaceMap = []; |
||
45 | |||
46 | /** |
||
47 | * Gateway constructor. |
||
48 | * |
||
49 | * @param \chillerlan\Threema\Endpoint\EndpointInterface $endpointInterface |
||
50 | */ |
||
51 | public function __construct(EndpointInterface $endpointInterface){ |
||
55 | |||
56 | /** |
||
57 | * @inheritdoc |
||
58 | */ |
||
59 | protected function mapMethods(){ |
||
64 | |||
65 | /** |
||
66 | * @param string $method |
||
67 | * @param array $params |
||
68 | * |
||
69 | * @return mixed |
||
70 | * @throws \chillerlan\Threema\GatewayException |
||
71 | */ |
||
72 | public function __call(string $method, array $params){ |
||
82 | |||
83 | } |
||
84 |