ControllerRestActionsCommand::handle()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php namespace Wn\Generators\Commands;
2
3
4
class ControllerRestActionsCommand extends BaseCommand {
5
6
	protected $signature = 'wn:controller:rest-actions
7
		{--force= : override the existing files}';
8
9
	protected $description = 'Generates REST actions trait to use into controllers';
10
11
    public function handle()
12
    {
13
        $content = $this->getTemplate('controller/rest-actions')->get();
14
15
        $this->save($content, "./app/Traits/RESTActions.php", "REST actions trait");
16
    }
17
18
}
19