Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
43 | } |
||
44 | } |
||
45 | 30 | } |
|
46 | |||
47 | 4 | public function ensurePropertyNameHasKey(Resource $resource, $value, $name, $key) |
|
48 | { |
||
49 | 4 | if ($resource->get($name) === $value && $resource->hasNotProperty($key)) { |
|
50 | 2 | throw new \Sensorario\Resources\Exceptions\PropertyException( |
|
51 | 2 | 'When property `' . $name . '` ' |
|
58 |