Completed
Push — master ( 843f54...f35bda )
by Miro
02:58 queued 01:04
created

GithubUserId::__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 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
namespace DevBoardLib\GithubCore\User;
3
4
use DevBoardLib\GithubCore\Identifier;
5
6
class GithubUserId implements Identifier
7
{
8
    private $githubUserId;
9
10
    /**
11
     * UserId constructor.
12
     *
13
     * @param $id
14
     */
15
    public function __construct($githubUserId)
16
    {
17
        $this->githubUserId = $githubUserId;
18
    }
19
20
    public function __toString()
21
    {
22
        return (string) $this->githubUserId;
23
    }
24
}
25