registration_helper   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 25
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
/**
3
 *
4
 * 2FA extension for the phpBB Forum Software package.
5
 *
6
 * @copyright (c) 2015 Paul Sohier
7
 * @license GNU General Public License, version 2 (GPL-2.0)
8
 *
9
 */
10
11
namespace paul999\tfa\helper;
12
13
use paul999\u2f\Registration;
14
15
class registration_helper extends Registration
16
{
17
	/**
18
	 * @var int
19
	 */
20
	private $id = 0;
21
22
	/**
23
	 * @return int
24
	 */
25
	public function getId()
26
	{
27
		return $this->id;
28
	}
29
30
	/**
31
	 * @param int $id
32
	 * @return registration_helper
33
	 */
34
	public function setId($id)
35
	{
36
		$this->id = $id;
37
		return $this;
38
	}
39
}
40