1 | <?php |
||
8 | class StringConverter implements ConverterInterface |
||
9 | { |
||
10 | protected $webHook = [ |
||
11 | 'token' => '', |
||
12 | 'team_id' => '', |
||
13 | 'team_domain' => '', |
||
14 | 'service_id' => '', |
||
15 | 'channel_id' => '', |
||
16 | 'channel_name' => '', |
||
17 | 'timestamp' => 0.000000, |
||
18 | 'user_id' => '', |
||
19 | 'user_name' => '', |
||
20 | ]; |
||
21 | |||
22 | protected $slashCommand = [ |
||
23 | 'token' => '', |
||
24 | 'team_id' => '', |
||
25 | 'channel_id' => '', |
||
26 | 'channel_name' => '', |
||
27 | 'user_id' => '', |
||
28 | 'user_name' => '', |
||
29 | ]; |
||
30 | |||
31 | /** |
||
32 | * @param $command |
||
33 | * |
||
34 | * @return \Crummy\Phlack\WebHook\CommandInterface |
||
35 | */ |
||
36 | 2 | public function convert($command) |
|
46 | } |
||
47 |