Completed
Push — master ( dd67d5...87ef89 )
by Dan
02:57
created

BuildFromUrlCommand   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 1
Bugs 1 Features 0
Metric Value
wmc 2
c 1
b 1
f 0
lcom 1
cbo 2
dl 0
loc 18
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A configure() 0 9 1
A execute() 0 5 1
1
<?php
2
3
namespace SixtyNine\Cloud\Command;
4
5
use Symfony\Component\Console\Input\InputArgument;
6
use Symfony\Component\Console\Input\InputInterface;
7
use Symfony\Component\Console\Input\InputOption;
8
use Symfony\Component\Console\Output\OutputInterface;
9
10
class BuildFromUrlCommand extends BaseCloudCommand
11
{
12
    protected function configure()
13
    {
14
        parent::configure();
15
        $this
16
            ->setName('cloud:from-url')
17
            ->setDescription('Create a cloud from a URL')
18
            ->addArgument('url', InputArgument::REQUIRED, 'The URL for the words')
19
        ;
20
    }
21
22
    protected function execute(InputInterface $input, OutputInterface $output)
23
    {
24
        $helper = new CommandsHelper();
25
        $helper->createCloud('from-url', $input);
26
    }
27
}
28