Account   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
dl 0
loc 36
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getCode() 0 3 1
A __construct() 0 4 1
A getEmail() 0 3 1
1
<?php
2
3
/**
4
 * This file is part of the Mediapart LaPresseLibre Library.
5
 *
6
 * CC BY-NC-SA <https://github.com/mediapart/lapresselibre>
7
 *
8
 * For the full license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Mediapart\LaPresseLibre\Account;
13
14
class Account
15
{
16
	/**
17
	 * @var string
18
	 */
19
	private $code;
20
21
	/**
22
	 * @var string
23
	 */
24
	private $email;
25
26
	/**
27
	 * @param string $email
28
	 * @param string $code
29
	 */
30
	public function __construct($email, $code = null)
31
	{
32
		$this->code = $code;
33
		$this->email = $email;
34
	}
35
36
	/**
37
	 * @return string|null
38
	 */
39
	public function getCode()
40
	{
41
		return $this->code;
42
	}
43
44
	/**
45
	 * @return string
46
	 */
47
	public function getEmail()
48
	{
49
		return $this->email;
50
	}
51
}
52