getProcessorArguments()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace Dekalee\StatsdSwarrotBundle\Configurator;
4
5
use Dekalee\StatsdSwarrotBundle\Processor\StatsdCounterProcessor;
6
use Swarrot\SwarrotBundle\Processor\ProcessorConfiguratorEnableAware;
7
use Swarrot\SwarrotBundle\Processor\ProcessorConfiguratorExtrasAware;
8
use Swarrot\SwarrotBundle\Processor\ProcessorConfiguratorInterface;
9
use Symfony\Component\Console\Input\InputInterface;
10
11
/**
12
 * Class StatsdCounterProcessorConfigurator
13
 */
14
class StatsdCounterProcessorConfigurator implements ProcessorConfiguratorInterface
15
{
16
    use ProcessorConfiguratorEnableAware, ProcessorConfiguratorExtrasAware;
17
18
    /**
19
     * {@inheritdoc}
20
     */
21
    public function getProcessorArguments(array $options)
22
    {
23
        return [
24
            StatsdCounterProcessor::CLASS,
25
        ];
26
    }
27
28
    /**
29
     * {@inheritdoc}
30
     */
31
    public function getCommandOptions()
32
    {
33
        return [];
34
    }
35
36
    /**
37
     * {@inheritdoc}
38
     */
39
    public function resolveOptions(InputInterface $input)
40
    {
41
        return $this->getExtras();
42
    }
43
}
44