Completed
Push — master ( 895aee...c5d013 )
by Arthur
8s
created

ResolveConfigGuess::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 2
1
<?php
2
3
namespace Arthem\GraphQLMapper\Mapping\Guesser;
4
5
use Arthem\GraphQLMapper\Mapping\Guesser\Guess\Guess;
6
7
class ResolveConfigGuess extends Guess
8
{
9
    /**
10
     * @var array
11
     */
12
    private $config;
13
14
    /**
15
     * @param array $config
16
     * @param int   $confidence
17
     */
18
    public function __construct(array $config, $confidence = self::LOW_CONFIDENCE)
19
    {
20
        $this->config = $config;
21
        parent::__construct($confidence);
22
    }
23
24
    /**
25
     * @return array
26
     */
27
    public function getConfig()
28
    {
29
        return $this->config;
30
    }
31
}
32