Completed
Push — master ( 4bb4eb...402013 )
by Arthur
03:35
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\Guess;
4
5
class ResolveConfigGuess extends Guess
6
{
7
    /**
8
     * @var array
9
     */
10
    private $config;
11
12
    /**
13
     * @param array $config
14
     * @param int   $confidence
15
     */
16
    public function __construct(array $config, $confidence = self::LOW_CONFIDENCE)
17
    {
18
        $this->config = $config;
19
        parent::__construct($confidence);
20
    }
21
22
    /**
23
     * @return array
24
     */
25
    public function getConfig()
26
    {
27
        return $this->config;
28
    }
29
}
30