Ezpublish   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Importance

Changes 3
Bugs 0 Features 0
Metric Value
wmc 4
eloc 7
c 3
b 0
f 0
dl 0
loc 31
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getPassword() 0 3 1
A setPassword() 0 9 3
1
<?php
2
3
/**
4
 * @license LGPLv3, http://opensource.org/licenses/LGPL-3.0
5
 * @copyright Aimeos (aimeos.org), 2015-2020
6
 * @package MShop
7
 * @subpackage Customer
8
 */
9
10
11
namespace Aimeos\MShop\Customer\Item;
12
13
14
/**
15
 * Ezpublish customer item
16
 *
17
 * @package MShop
18
 * @subpackage Customer
19
 */
20
class Ezpublish extends Standard implements Iface
21
{
22
	private $password = null;
23
24
25
	/**
26
	 * Returns the password of the customer item
27
	 *
28
	 * @return string Password
29
	 */
30
	public function getPassword() : string
31
	{
32
		return (string) $this->password;
33
	}
34
35
36
	/**
37
	 * Sets the password of the customer item
38
	 *
39
	 * @param string $value password of the customer item
40
	 * @return \Aimeos\MShop\Customer\Item\Iface Customer item for chaining method calls
41
	 */
42
	public function setPassword( string $value ) : \Aimeos\MShop\Customer\Item\Iface
43
	{
44
		if( $value !== '' && $value != $this->getPassword() )
45
		{
46
			$this->password = $value;
47
			$this->setModified();
48
		}
49
50
		return $this;
51
	}
52
}
53