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 |
||
25 | 8 | public function __construct($value) |
|
26 | { |
||
27 | 8 | if (false === is_resource($value)) { |
|
28 | 1 | throw new TypeError( |
|
29 | 'Argument 1 passed to drupol\valuewrapper\Resource\ResourceValue::__construct()' . |
||
30 | 1 | ' must be of the type Resource, ' . gettype($value) . ' given.' |
|
31 | ); |
||
32 | } |
||
33 | |||
34 | 7 | parent::__construct($value); |
|
35 | 7 | } |
|
69 |