ConfigurationProvider::getConfiguration()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 0
crap 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