1 | <?php |
||
21 | abstract class EndpointAbstract implements EndpointInterface{ |
||
22 | |||
23 | /** |
||
24 | * @var \chillerlan\Threema\GatewayOptions |
||
25 | */ |
||
26 | protected $gatewayOptions; |
||
27 | |||
28 | /** |
||
29 | * TinyCurlEndpoint constructor. |
||
30 | * |
||
31 | * @param \chillerlan\Threema\GatewayOptions $gatewayOptions |
||
32 | */ |
||
33 | public function __construct(GatewayOptions $gatewayOptions){ |
||
38 | |||
39 | /** |
||
40 | * @param string $threemaID |
||
41 | * |
||
42 | * @return string |
||
43 | * @throws \chillerlan\Threema\Endpoint\EndpointException |
||
44 | */ |
||
45 | protected function checkThreemaID(string $threemaID):string{ |
||
53 | |||
54 | /** |
||
55 | * @param string $phoneNo |
||
56 | * |
||
57 | * @return string |
||
58 | * @throws \chillerlan\Threema\Endpoint\EndpointException |
||
59 | */ |
||
60 | protected function checkPhoneNo(string $phoneNo):string{ |
||
69 | |||
70 | /** |
||
71 | * @param $email |
||
72 | * |
||
73 | * @return string |
||
74 | * @throws \chillerlan\Threema\Endpoint\EndpointException |
||
75 | */ |
||
76 | protected function checkEmail($email):string{ |
||
85 | |||
86 | /** |
||
87 | * @param string $hash |
||
88 | * |
||
89 | * @return string |
||
90 | * @throws \chillerlan\Threema\Endpoint\EndpointException |
||
91 | */ |
||
92 | protected function checkHash(string $hash):string{ |
||
100 | |||
101 | } |
||
102 |