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

GithubUserId   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 2
c 1
b 0
f 1
lcom 0
cbo 0
dl 0
loc 19
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\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