Identifier   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 2
Bugs 1 Features 1
Metric Value
eloc 4
c 2
b 1
f 1
dl 0
loc 23
ccs 0
cts 5
cp 0
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __clone() 0 3 1
A getId() 0 3 1
1
<?php declare(strict_types = 1);
2
3
namespace Portiny\Doctrine\Behaviour;
4
5
use Doctrine\ORM\Mapping as ORM;
6
7
trait Identifier
8
{
9
	/**
10
	 * @ORM\Id
11
	 * @ORM\Column(type="integer")
12
	 * @ORM\GeneratedValue(strategy="IDENTITY")
13
	 * @var int
14
	 */
15
	private $id;
16
17
18
	public function __clone()
19
	{
20
		$this->id = null;
21
	}
22
23
24
	/**
25
	 * @return int
26
	 */
27
	final public function getId()
28
	{
29
		return $this->id;
30
	}
31
32
}
33