AnalyticsRefreshTagCommand::execute()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 2
crap 2
1
<?php
2
3
namespace Dekalee\AdbackAnalyticsBundle\Command;
4
5
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
6
use Symfony\Component\Console\Input\InputArgument;
7
use Symfony\Component\Console\Input\InputInterface;
8
use Symfony\Component\Console\Input\InputOption;
9
use Symfony\Component\Console\Output\OutputInterface;
10
11
/**
12
 * Class AnalyticsRefreshTagCommand
13
 */
14
class AnalyticsRefreshTagCommand extends ContainerAwareCommand
15
{
16
    /**
17
     * Configure the command
18
     */
19
    protected function configure()
20
    {
21
        $this
22
            ->setName('dekalee:adback-anayltics:refresh-tag')
23
            ->setDescription('Refresh the adback tags')
24
        ;
25
    }
26
27
    /**
28
     * @param InputInterface  $input
29
     * @param OutputInterface $output
30
     *
31
     * @return null
32
     */
33
    protected function execute(InputInterface $input, OutputInterface $output)
34
    {
35
        $this->getContainer()->get('dekalee_adback_analytics.query.script_url')->execute();
36
    }
37
}
38