Version   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 4
Bugs 0 Features 0
Metric Value
eloc 5
c 4
b 0
f 0
dl 0
loc 13
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getNumber() 0 2 1
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
}