Passed
Push — master ( b97787...c0f601 )
by Jean-Christophe
16:10
created

Password::toView()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 2
c 0
b 0
f 0
dl 0
loc 3
ccs 3
cts 3
cp 1
rs 10
cc 2
nc 2
nop 1
crap 2
1
<?php
2
3
namespace Ubiquity\contents\transformation\transformers;
4
5
use Ubiquity\utils\base\UString;
6
use Ubiquity\contents\transformation\TransformerViewInterface;
7
8
/**
9
 * Mask a password.
10
 * Ubiquity\contents\transformation\transformers$Password
11
 * This class is part of Ubiquity
12
 *
13
 * @author jcheron <[email protected]>
14
 * @version 1.0.0
15
 * @since 2.1.1
16
 */
17
class Password implements TransformerViewInterface {
18
19 4
	public static function toView($value) {
20 4
		if ($value != null)
21 4
			return UString::mask ( $value );
22
	}
23
}
24