LastRecalculation   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
dl 0
loc 31
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getVersion() 0 4 1
A setVersion() 0 4 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: benedikt
5
 * Date: 6/28/18
6
 * Time: 2:41 PM
7
 */
8
9
namespace Tfboe\FmLib\Entity\Traits;
10
11
12
use Doctrine\ORM\Mapping as ORM;
13
use Tfboe\FmLib\Entity\Helpers\NumericalId;
14
use Tfboe\FmLib\Entity\Helpers\TimeEntity;
15
16
/**
17
 * Trait LastRecalculation
18
 * @package Tfboe\FmLib\Entity\Traits
19
 */
20
trait LastRecalculation
21
{
22
  use NumericalId;
23
  use TimeEntity;
24
25
//<editor-fold desc="Fields">
26
  /**
27
   * @ORM\Column(type="integer", nullable=false)
28
   * @var int
29
   */
30
  private $version;
31
//</editor-fold desc="Fields">
32
33
//<editor-fold desc="Public Methods">
34
  /**
35
   * @return int
36
   */
37
  public function getVersion(): int
38
  {
39
    return $this->version;
40
  }
41
42
  /**
43
   * @param int $version
44
   */
45
  public function setVersion(int $version)
46
  {
47
    $this->version = $version;
48
  }
49
//</editor-fold desc="Public Methods">
50
}