Completed
Push — master ( 5da4b2...7163c3 )
by Miro
04:03 queued 01:19
created

ExternalServiceSource   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getId() 0 4 1
A getName() 0 4 1
1
<?php
2
namespace DevBoardLib\GithubCore\External;
3
4
/**
5
 * Class ExternalServiceSource.
6
 */
7
class ExternalServiceSource implements ExternalService
8
{
9
    /** @var ExternalServiceId */
10
    protected $id;
11
    /** @var string */
12
    private $name;
13
14
    /**
15
     * ExternalServiceSource constructor.
16
     *
17
     * @param ExternalServiceId $id
18
     * @param string            $name
19
     */
20
    public function __construct(ExternalServiceId $id, $name)
21
    {
22
        $this->id   = $id;
23
        $this->name = $name;
24
    }
25
26
    /**
27
     * @return ExternalServiceId
28
     */
29
    public function getId()
30
    {
31
        return $this->id;
32
    }
33
34
    /**
35
     * @return string
36
     */
37
    public function getName()
38
    {
39
        return $this->name;
40
    }
41
}
42