Completed
Pull Request — master (#20)
by Miro
02:16
created

GithubCommitStatusId   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 0
Metric Value
c 1
b 0
f 0
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\CommitStatus;
3
4
use DevBoardLib\GithubCore\Identifier;
5
6
/**
7
 * Class GithubCommitStatusId.
8
 */
9
class GithubCommitStatusId implements Identifier
10
{
11
    private $githubCommitStatusId;
12
13
    /**
14
     * CommitStatusId constructor.
15
     *
16
     * @param $githubCommitStatusId
17
     */
18
    public function __construct($githubCommitStatusId)
19
    {
20
        $this->githubCommitStatusId = $githubCommitStatusId;
21
    }
22
23
    /**
24
     * @return string
25
     */
26
    public function __toString()
27
    {
28
        return (string) $this->githubCommitStatusId;
29
    }
30
}
31