Version::getNumber()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * @file Version.php
5
 * @brief This file contains the Version class.
6
 * @details
7
 * @author Filippo F. Fadda
8
 */
9
10
11
namespace EoC;
12
13
14
/**
15
 * @brief This helper class is aimed to provide the software version number.
16
 * @details The version number is composed by a group of three numbers. The first one is the major release number, the
17
 * second one is the minor release number and the third one is used to identify the maintenance version.
18
 */
19
class Version {
20
21
  const MAJOR = '0'; //!< Major release number.
22
  const MINOR = '9'; //!< Minor release number.
23
  const MAINTENANCE = '2'; //!< Maintenance release number (bug fixes only).
24
25
26
  /**
27
   * @brief Returns the version number as string.
28
   * @return string The version number.
29
   */
30
  public static function getNumber() {
31
    return static::MAJOR.".".static::MINOR.".".static::MAINTENANCE;
32
  }
33
34
}