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

BuildFromUrlCommand::render()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 11
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
c 1
b 1
f 0
dl 0
loc 11
rs 9.4285
cc 2
eloc 6
nc 2
nop 4
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