AbstractSearch   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 30
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 2
1
<?php
2
3
/**
4
 * This file is part of Laravel Meetups.
5
 *
6
 * (c) Nuno Maduro <[email protected]>
7
 *
8
 *  For the full copyright and license information, please view the LICENSE
9
 *  file that was distributed with this source code.
10
 */
11
12
namespace LaravelMeetups\Jobs;
13
14
use LaravelMeetups\Contracts\Config;
15
use PHPHtmlParser\Dom;
16
use Symfony\Component\Console\Input\InputInterface;
17
18
/**
19
 * Class AbstractSearch.
20
 */
21
abstract class AbstractSearch
22
{
23
    /**
24
     * Holds a instance of config.
25
     *
26
     * @var Config
27
     */
28
    protected $config;
29
30
    /**
31
     * Holds a instance of input.
32
     *
33
     * @var InputInterface
34
     */
35
    protected $input;
36
37
    /**
38
     * Holds a instance of analyser.
39
     *
40
     * @var Dom
41
     */
42
    protected $dom;
43
44
    public function __construct(Config $config, InputInterface $input, Dom $dom = null)
45
    {
46
        $this->config = $config;
47
        $this->input = $input;
48
        $this->dom = $dom ?: new Dom();
49
    }
50
}
51