Passed
Push — master ( f780f9...8d5450 )
by Patrick
03:32
created

MattermostClientFacade   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getChannel() 0 3 1
A getPosts() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of forecast.it.fill project.
7
 * (c) Patrick Jaja <[email protected]>
8
 * This source file is subject to the MIT license that is bundled
9
 * with this source code in the file LICENSE.
10
 */
11
12
namespace ForecastAutomation\MattermostClient;
13
14
use ForecastAutomation\Kernel\AbstractFacade;
15
use ForecastAutomation\MattermostClient\Shared\Dto\MattermostChannelFilterQueryDto;
16
use ForecastAutomation\MattermostClient\Shared\Dto\MattermostPostsQueryDto;
17
18
/**
19
 * @method \ForecastAutomation\MattermostClient\MattermostClientFactory getFactory()
20
 */
21
class MattermostClientFacade extends AbstractFacade
22
{
23 1
    public function getChannel(MattermostChannelFilterQueryDto $channelFilterQueryDto): array
24
    {
25 1
        return $this->getFactory()->createMattermostApi()->getChannel($channelFilterQueryDto);
26
    }
27
28 1
    public function getPosts(MattermostPostsQueryDto $mattermostPostsQueryDto): array
29
    {
30 1
        return $this->getFactory()->createMattermostApi()->getPosts($mattermostPostsQueryDto);
31
    }
32
}
33