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

GithubCommitStatusId::__toString()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
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