ExternalServiceSource::getId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace DevBoardLib\GithubCore\External;
4
5
/**
6
 * Class ExternalServiceSource.
7
 */
8
class ExternalServiceSource implements ExternalService
9
{
10
    /** @var ExternalServiceId */
11
    protected $id;
12
    /** @var string */
13
    private $name;
14
15
    /**
16
     * ExternalServiceSource constructor.
17
     *
18
     * @param ExternalServiceId $id
19
     * @param string            $name
20
     */
21
    public function __construct(ExternalServiceId $id, $name)
22
    {
23
        $this->id   = $id;
24
        $this->name = $name;
25
    }
26
27
    /**
28
     * @return ExternalServiceId
29
     */
30
    public function getId()
31
    {
32
        return $this->id;
33
    }
34
35
    /**
36
     * @return string
37
     */
38
    public function getName()
39
    {
40
        return $this->name;
41
    }
42
}
43