Passed
Push — master ( 12ed59...661264 )
by Julien
05:22
created

Version   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getVersion() 0 3 1
1
<?php
2
/**
3
 * This file is part of the Zemit Framework.
4
 *
5
 * (c) Zemit Team <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE.txt
8
 * file that was distributed with this source code.
9
 */
10
11
namespace Zemit;
12
13
/**
14
 * Class Version
15
 * This class allows to get the installed version of the zemit core
16
 *
17
 * @author Julien Turbide <[email protected]>
18
 * @copyright Zemit Team <[email protected]>
19
 *
20
 * @since 1.0
21
 * @version 1.9
22
 *
23
 * @package Zemit
24
 */
25
class Version extends \Phalcon\Version
26
{
27
    /**
28
     * Area where the version number is set. The format is as follows:
29
     * ABBCCDE
30
     *
31
     * A - Major version
32
     * B - Med version (two digits)
33
     * C - Min version (two digits)
34
     * D - Special release: 1 = Alpha, 2 = Beta, 3 = RC, 4 = Stable
35
     * E - Special release version i.e. RC1, Beta2 etc.
36
     */
37 7
    protected static function getVersion() : array
38
    {
39 7
        return [0, 1, 31, 2, 0];
40
    }
41
}
42