Completed
Push — master ( 3c26c2...8c2f55 )
by Bobby
54:54 queued 53:43
created

VersionFactory::create()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 1
1
<?php
2
namespace Ballen\GitVersionNumber;
3
4
/**
5
 * Git Version Number
6
 * 
7
 * A library for extracting and utilising your project's Git version information.
8
 *
9
 * @author Bobby Allen <[email protected]>
10
 * @license https://raw.githubusercontent.com/allebb/git-version-number/master/LICENSE
11
 * @link https://github.com/allebb/git-version-number
12
 * @link http://bobbyallen.me
13
 *
14
 */
15
class VersionFactory
16
{
17
18
    /**
19
     * Factory object creation
20
     * @param string $path Optional custom path to the .git root directory.
21
     * @return \Ballen\GitVersionNumber\Version
22
     */
23 2
    public static function create($path)
24
    {
25 2
        return new Version($path);
26
    }
27
}
28