GithubCommitConverter::__construct()   A
last analyzed

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
3
namespace DevBoardLib\GithubObjectApiFacade\Repo\Commit\Converter;
4
5
use DevBoardLib\GithubCore\Repo\GithubRepo;
6
use DevBoardLib\GithubObjectApiFacade\User\Converter\GithubUserConvertTrait;
7
8
/**
9
 * Class GithubCommitConverter.
10
 */
11
class GithubCommitConverter
12
{
13
    use GithubCommitConvertTrait;
14
    use GithubUserConvertTrait;
15
    /**
16
     * @var GithubRepo
17
     */
18
    private $githubRepo;
19
20
    /**
21
     * GithubMilestoneConverter constructor.
22
     *
23
     * @param $githubRepo
24
     */
25
    public function __construct(GithubRepo $githubRepo)
26
    {
27
        $this->githubRepo = $githubRepo;
28
    }
29
30
    /**
31
     * @param $data
32
     *
33
     * @return \DevBoardLib\GithubCore\Commit\GithubCommitSource
34
     */
35
    public function convert($data)
36
    {
37
        return $this->convertCommit($data);
38
    }
39
}
40