1 | <?php |
||
14 | class CreateSMSAction extends ActionAbstract implements ActionInterface |
||
15 | { |
||
16 | protected $command = CreateSMSCommand::class; |
||
17 | |||
18 | protected $handler = CreateSMSHandler::class; |
||
19 | |||
20 | protected $middlewares = [ |
||
21 | CreateSMSValidator::class, |
||
22 | CreateSMSResponder::class, |
||
23 | ]; |
||
24 | |||
25 | public function setup() |
||
35 | |||
36 | public function getCommand(): string |
||
40 | |||
41 | public function getHandler(): string |
||
45 | |||
46 | public function getMiddlewares(): array |
||
50 | |||
51 | /** |
||
52 | * Extract the values in the associative array in config('missive.relay'). |
||
53 | * |
||
54 | * The following array array |
||
55 | * |
||
56 | * [ |
||
57 | * 'from' => 'from_number', |
||
58 | * 'to' => 'to_number', |
||
59 | * 'message' => 'content', |
||
60 | * ] |
||
61 | * |
||
62 | * becomes |
||
63 | * |
||
64 | * [ |
||
65 | * 'from_number', |
||
66 | * 'to_number', |
||
67 | * 'content', |
||
68 | * ] |
||
69 | * |
||
70 | * which is needed as properties of the command required by the tactician package |
||
71 | * |
||
72 | * @return array |
||
73 | */ |
||
74 | public function getFields(): array |
||
80 | } |
||
81 |