GuardedPropertyException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 19
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
namespace Intraxia\Jaxion\Axolotl;
3
4
use RuntimeException;
5
6
/**
7
 * Class GuardedPropertyException
8
 *
9
 * @package    Intraxia\Jaxion
10
 * @subpackage Axolotl
11
 */
12
class GuardedPropertyException extends RuntimeException {
13
	/**
14
	 * Property that threw.
15
	 *
16
	 * @var string
17
	 */
18
	public $property;
19
20
	/**
21
	 * Construct a GuardedPropertyException.
22
	 *
23
	 * @param string $property Property that was guarded.
24
	 */
25 9
	public function __construct( $property ) {
26 9
		parent::__construct();
27
28 9
		$this->property = $property;
29 9
	}
30
}
31