Completed
Push — master ( b5a957...040c1d )
by Paul
03:38
created

registration_helper::setId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 5
rs 9.4286
cc 1
eloc 3
nc 1
nop 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
	/** @var int  */
18
	public $id = 0;
19
20
	/**
21
	 * @return int
22
	 */
23
	public function getId()
24
	{
25
		return $this->id;
26
	}
27
28
	/**
29
	 * @param int $id
30
	 * @return registration_helper
31
	 */
32
	public function setId($id)
33
	{
34
		$this->id = $id;
35
		return $this;
36
	}
37
38
39
}
40