Completed
Push — master ( 7f572e...bf04a1 )
by Benedikt
02:39
created

UUIDEntity   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A getEntityId() 0 4 1
1
<?php
2
declare(strict_types=1);
3
/**
4
 * Created by PhpStorm.
5
 * User: benedikt
6
 * Date: 1/3/18
7
 * Time: 10:57 AM
8
 */
9
10
namespace Tfboe\FmLib\Entity\Helpers;
11
12
/**
13
 * Trait UUIDEntity
14
 * @package Tfboe\FmLib\Entity\Helpers
15
 */
16
trait UUIDEntity
17
{
18
//<editor-fold desc="Fields">
19
  /**
20
   * @ORM\Id
21
   * @ORM\GeneratedValue(strategy="CUSTOM")
22
   * @ORM\CustomIdGenerator(class="Tfboe\FmLib\Entity\Helpers\IdGenerator")
23
   * @ORM\Column(type="guid")
24
   * @var string
25
   */
26
  private $id;
27
//</editor-fold desc="Fields">
28
29
//<editor-fold desc="Public Methods">
30
  /**
31
   * @return string
32
   */
33
  public function getId(): string
34
  {
35
    return $this->id;
36
  }
37
38
  /**
39
   * @return string|int
40
   */
41
  public function getEntityId()
42
  {
43
    return $this->id;
44
  }
45
//</editor-fold desc="Public Methods">
46
}