GithubRepoConverter   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 3
Bugs 0 Features 1
Metric Value
wmc 2
c 3
b 0
f 1
lcom 0
cbo 2
dl 0
loc 22
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A convert() 0 4 1
1
<?php
2
3
namespace DevBoardLib\GithubObjectApiFacade\Repo\Repo\Converter;
4
5
use DevBoardLib\GithubObjectApiFacade\User\Converter\GithubUserConvertTrait;
6
7
/**
8
 * Class GithubRepoConverter.
9
 */
10
class GithubRepoConverter
11
{
12
    use GithubRepoConvertTrait;
13
    use GithubUserConvertTrait;
14
15
    /**
16
     * GithubMilestoneConverter constructor.
17
     */
18
    public function __construct()
19
    {
20
    }
21
22
    /**
23
     * @param array $data
24
     *
25
     * @return \DevBoardLib\GithubCore\Repo\GithubRepoSource
26
     */
27
    public function convert(array $data)
28
    {
29
        return $this->convertRepo($data);
30
    }
31
}
32