ExternalServiceSource   A
last analyzed

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
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