AnalyticsRefreshTagCommand   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
c 0
b 0
f 0
lcom 0
cbo 2
dl 0
loc 24
ccs 0
cts 11
cp 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A configure() 0 7 1
A execute() 0 4 1
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