Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
5 / 5 |
|
100.00% |
3 / 3 |
CRAP | |
100.00% |
1 / 1 |
| Schema_Error | |
100.00% |
5 / 5 |
|
100.00% |
3 / 3 |
3 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
3 / 3 |
|
100.00% |
1 / 1 |
1 | |||
| get_value | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| get_context | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace Automattic\Jetpack\Schema; |
| 4 | |
| 5 | class Schema_Error extends \RuntimeException { |
| 6 | private $value; |
| 7 | private $context; |
| 8 | |
| 9 | public function __construct( $message, $value, $context = null ) { |
| 10 | $this->value = $value; |
| 11 | $this->context = $context; |
| 12 | parent::__construct( $message ); |
| 13 | } |
| 14 | |
| 15 | public function get_value() { |
| 16 | return $this->value; |
| 17 | } |
| 18 | |
| 19 | public function get_context() { |
| 20 | return $this->context; |
| 21 | } |
| 22 | } |