Resource::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 2
dl 0
loc 3
ccs 3
cts 3
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
namespace Ubiquity\security\acl\models;
3
4
/**
5
 * Ubiquity\security\acl\models$Resource
6
 * This class is part of Ubiquity
7
 *
8
 * @author jc
9
 * @version 1.0.0
10
 *
11
 */
12
class Resource extends AbstractAclPart {
13
14
	protected $value;
15
16 25
	public function __construct(?string $name = null, ?string $value = null) {
17 25
		parent::__construct($name);
18 25
		$this->value = $value;
19
	}
20
21
	/**
22
	 *
23
	 * @return mixed
24
	 */
25
	public function getValue() {
26
		return $this->value;
27
	}
28
29
	/**
30
	 *
31
	 * @param mixed $value
32
	 */
33 4
	public function setValue($value) {
34 4
		$this->value = $value;
35
	}
36
}
37
38