LastRecalculation::getVersion()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
cc 1
nc 1
nop 0
rs 10
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
}