Completed
Push — master ( e447f7...0a0e4a )
by Miro
02:26
created

GithubRepoSshUrl   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 23
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A __toString() 0 4 1
1
<?php
2
3
namespace DevBoardLib\GithubCore\Repo;
4
5
/**
6
 * @todo: Reason this class exists
7
 */
8
class GithubRepoSshUrl
9
{
10
    /**
11
     * @var string
12
     */
13
    private $url;
14
15
    /**
16
     * @param $url
17
     */
18
    public function __construct(string $url)
19
    {
20
        $this->url = $url;
21
    }
22
23
    /**
24
     * @return string
25
     */
26
    public function __toString() : string
27
    {
28
        return $this->url;
29
    }
30
}
31