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

ResolveConfigGuess   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getConfig() 0 4 1
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