PdoAddress   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 27
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A setId() 0 5 1
1
<?php
2
namespace Germania\Addresses;
3
4
class PdoAddress extends Address implements PdoAddressInterface
5
{
6
	/**
7
	 * @var int
8
	 */
9
	public $id;
10
11
12
	/**
13
	 * @return int Database record ID
14
	 */
15 4
	public function getId() : ?int
16
	{
17 4
		return $this->id;
18
	}
19
20
21
	/**
22
	 * @param int $id
23
	 */
24 2
	public function setId( $id ) : self
25
	{
26 2
		$this->id = $id;
27 2
		return $this;
28
	}
29
30
}