GuardedPropertyException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 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