Test Failed
Push — master ( b9585a...faf188 )
by Julien
12:03
created

Version::_getVersion()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 1
c 2
b 0
f 0
dl 0
loc 3
ccs 0
cts 2
cp 0
rs 10
cc 1
nc 1
nop 0
crap 2
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.0
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
    protected static function _getVersion() : array
38
    {
39
        return [0, 4, 0, 2, 0];
40
    }
41
}
42