ConfigurationProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 1
dl 0
loc 23
c 0
b 0
f 0
ccs 5
cts 5
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getConfiguration() 0 4 1
1
<?php
2
3
namespace LaFourchette\AdobeCampaignClientBundle\Client;
4
5
/**
6
 * Cache handling should be there
7
 */
8
class ConfigurationProvider
9
{
10
    /**
11
     * @var ConfigurationCreator
12
     */
13
    private $configurationCreator;
14
15
    /**
16
     * @param ConfigurationCreator $configurationCreator
17
     */
18 1
    public function __construct(ConfigurationCreator $configurationCreator)
19
    {
20 1
        $this->configurationCreator = $configurationCreator;
21 1
    }
22
23
    /**
24
     * @return Configuration
25
     */
26 1
    public function getConfiguration()
27
    {
28 1
        return $this->configurationCreator->create();
29
    }
30
}
31