VersionFactory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
eloc 2
c 2
b 0
f 0
dl 0
loc 11
ccs 2
cts 2
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 3 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