Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
25 | 2 | public function __construct( $attributeName, $message = '', Exception $previous = null ) { |
|
26 | 2 | $this->attributeName = $attributeName; |
|
27 | |||
28 | 2 | if ( $message === '' ) { |
|
29 | 1 | $message = 'Attribute "' . $attributeName . '" is missing'; |
|
30 | } |
||
31 | |||
32 | 2 | parent::__construct( $message, $previous ); |
|
33 | 2 | } |
|
34 | |||
43 |