1 | <?php namespace Cerbero\Workflow\Console\Commands; |
||
5 | class UpdateWorkflowCommand extends WorkflowGeneratorCommand { |
||
6 | |||
7 | use AttachesPipesTrait, DeleteIfForcedTrait; |
||
8 | |||
9 | /** |
||
10 | * The console command name. |
||
11 | * |
||
12 | * @var string |
||
13 | */ |
||
14 | protected $name = 'workflow:update'; |
||
15 | |||
16 | /** |
||
17 | * The console command description. |
||
18 | * |
||
19 | * @var string |
||
20 | */ |
||
21 | protected $description = 'Update an existing workflow'; |
||
22 | |||
23 | /** |
||
24 | * @author Andrea Marco Sartori |
||
25 | * @var string $type Type of class to generate. |
||
26 | */ |
||
27 | protected $type = 'Pipe'; |
||
28 | |||
29 | /** |
||
30 | * Execute the console command. |
||
31 | * |
||
32 | * @return mixed |
||
33 | */ |
||
34 | public function fire() |
||
51 | |||
52 | /** |
||
53 | * Delete the detached pipes if force is set. |
||
54 | * |
||
55 | * @author Andrea Marco Sartori |
||
56 | * @return void |
||
57 | */ |
||
58 | protected function deleteDetachedIfForced() |
||
64 | |||
65 | /** |
||
66 | * Update the given workflow. |
||
67 | * |
||
68 | * @author Andrea Marco Sartori |
||
69 | * @param string $workflow |
||
70 | * @return void |
||
71 | */ |
||
72 | protected function updateWorkflow($workflow) |
||
80 | |||
81 | /** |
||
82 | * Get the console command options. |
||
83 | * |
||
84 | * @return array |
||
85 | */ |
||
86 | protected function getOptions() |
||
94 | |||
95 | } |
||
96 |