Test Failed
Push — master ( 6f7a22...abd8b8 )
by Hirofumi
31:24
created

SlackChannelDestination   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 31
c 0
b 0
f 0
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A channel() 0 4 1
A destinationType() 0 4 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Shippinno\Notification\Domain\Model;
5
6
class SlackChannelDestination extends Destination
7
{
8
    /**
9
     * @var string
10
     */
11
    private $channel;
12
13
    /**
14
     * @param string $channel
15
     */
16
    public function __construct(string $channel)
17
    {
18
        $this->channel = $channel;
19
    }
20
21
    /**
22
     * @return string
23
     */
24
    public function channel(): string
25
    {
26
        return $this->channel;
27
    }
28
29
    /**
30
     * @return string
31
     */
32
    public function destinationType(): string
33
    {
34
        return get_class($this);
35
    }
36
}
37