| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | 10 | public function __construct($value) |
|
| 22 | { |
||
| 23 | 10 | if (null !== $value) { |
|
| 24 | 1 | throw new TypeError( |
|
| 25 | 'Argument 1 passed to drupol\valuewrapper\Type\NullType::__construct() must be of the type null, ' . |
||
| 26 | 1 | gettype($value) . ' given.' |
|
| 27 | ); |
||
| 28 | } |
||
| 29 | |||
| 30 | 9 | parent::__construct($value); |
|
| 31 | 9 | } |
|
| 33 |