Passed
Push — master ( 653498...1099cb )
by Patrick
03:08
created

ForecastClientFacade   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A writeActivities() 0 3 1
1
<?php
2
3
namespace ForecastAutomation\ForecastClient;
4
5
use ForecastAutomation\Activity\Shared\Dto\ActivityDtoCollection;
6
use ForecastAutomation\Kernel\AbstractFacade;
7
8
/**
9
 * @method \ForecastAutomation\ForecastClient\ForecastClientFactory getFactory()
10
 */
11
class ForecastClientFacade extends AbstractFacade
12
{
13 1
    public function writeActivities(ActivityDtoCollection $activityDtoCollection): int
14
    {
15 1
        return $this->getFactory()->createForecastApi()->writeActivities($activityDtoCollection);
16
    }
17
}
18