1 | <?php |
||
7 | class GenerateTransition extends GeneratorCommand |
||
8 | { |
||
9 | |||
10 | /** |
||
11 | * The name and signature of the console command. |
||
12 | * |
||
13 | * @var string |
||
14 | */ |
||
15 | protected $signature = 'make:transition {name} {--request-only} {--response-only}'; |
||
16 | /** |
||
17 | * The console command description. |
||
18 | * |
||
19 | * @var string |
||
20 | */ |
||
21 | protected $description = 'Create an HTTP transition'; |
||
22 | |||
23 | /** |
||
24 | * Get the stub file for the generator. |
||
25 | * |
||
26 | * @return string |
||
27 | */ |
||
28 | protected function getStub() |
||
39 | |||
40 | /** |
||
41 | * Build the model class with the given name. |
||
42 | * |
||
43 | * @param string $name |
||
44 | * @return string |
||
45 | */ |
||
46 | protected function buildClass($name) |
||
53 | |||
54 | /** |
||
55 | * Get the default namespace for the class. |
||
56 | * |
||
57 | * @param string $rootNamespace |
||
58 | * @return string |
||
59 | */ |
||
60 | protected function getDefaultNamespace($rootNamespace) |
||
65 | } |
||
66 |