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

GithubPullRequestId::__construct()   A

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 1
1
<?php
2
namespace DevBoardLib\GithubCore\PullRequest;
3
4
use DevBoardLib\GithubCore\Identifier;
5
6
/**
7
 * Class GithubPullRequestId.
8
 */
9
class GithubPullRequestId implements Identifier
10
{
11
    private $githubPullRequestId;
12
13
    /**
14
     * PullRequestId constructor.
15
     *
16
     * @param $githubPullRequestId
17
     */
18
    public function __construct($githubPullRequestId)
19
    {
20
        $this->githubPullRequestId = $githubPullRequestId;
21
    }
22
23
    /**
24
     * @return string
25
     */
26
    public function __toString()
27
    {
28
        return (string) $this->githubPullRequestId;
29
    }
30
}
31