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

ExternalServiceId   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
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 22
wmc 2
lcom 0
cbo 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A __toString() 0 4 1
1
<?php
2
namespace DevBoardLib\GithubCore\External;
3
4
use DevBoardLib\GithubCore\Identifier;
5
6
/**
7
 * Class ExternalServiceId.
8
 */
9
class ExternalServiceId implements Identifier
10
{
11
    private $externalServiceId;
12
13
    /**
14
     * PullRequestId constructor.
15
     *
16
     * @param $externalServiceId
17
     */
18
    public function __construct($externalServiceId)
19
    {
20
        $this->externalServiceId = $externalServiceId;
21
    }
22
23
    /**
24
     * @return string
25
     */
26
    public function __toString()
27
    {
28
        return (string) $this->externalServiceId;
29
    }
30
}
31