Passed
Push — master ( f6e659...bb9ac5 )
by Patrick
04:00
created

ForecastClientDependencyProvider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 5
c 1
b 0
f 1
dl 0
loc 9
rs 10
ccs 0
cts 3
cp 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A provideDependencies() 0 4 1
1
<?php
2
3
namespace ForecastAutomation\ForecastClient;
4
5
use ForecastAutomation\Cache\CacheFacade;
6
use ForecastAutomation\Kernel\AbstractDependencyProvider;
7
use ForecastAutomation\Kernel\Locator;
8
use ForecastAutomation\Log\LogFacade;
9
10
class ForecastClientDependencyProvider extends AbstractDependencyProvider
11
{
12
    public const LOG_FACADE = 'LOGGER_FACADE';
13
    public const CACHE_FACADE = 'CACHE_FACADE';
14
15
    public function provideDependencies(Locator $locator): void
16
    {
17
        $this->set(self::LOG_FACADE, new LogFacade());
18
        $this->set(self::CACHE_FACADE, new CacheFacade());
19
    }
20
}
21