SearchBounds   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1
Metric Value
wmc 2
lcom 1
cbo 1
dl 0
loc 37
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A execute() 0 4 1
1
<?php
2
3
/*
4
 * (c) Jean-François Lépine <https://twitter.com/Halleck45>
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
10
namespace Hal\Application\Command\Job;
11
use Hal\Component\Bounds\BoundsInterface;
12
use Hal\Component\Result\ResultCollection;
13
use Symfony\Component\Console\Output\OutputInterface;
14
15
16
/**
17
 * Search bounds
18
 *
19
 * @author Jean-François Lépine <https://twitter.com/Halleck45>
20
 */
21
class SearchBounds implements JobInterface
22
{
23
24
    /**
25
     * Bound
26
     *
27
     * @var \Hal\Component\Bounds\BoundsInterface
28
     */
29
    private $bound;
30
31
    /**
32
     * Output
33
     *
34
     * @var OutputInterface
35
     */
36
    private $output;
37
38
    /**
39
     * Constructor
40
     * @param OutputInterface $output
41
     * @param BoundsInterface $bound
42
     */
43
    public function __construct(OutputInterface $output, BoundsInterface $bound)
44
    {
45
        $this->bound = $bound;
46
        $this->output = $output;
47
    }
48
49
    /**
50
     * @inheritdoc
51
     */
52
    public function execute(ResultCollection $collection, ResultCollection $groupedResults)
53
    {
54
        $this->bound->calculate($collection);
55
    }
56
57
}