Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
15 | 16 | public static function assertIsValidAttributesObject($attributes) |
|
16 | { |
||
17 | 16 | static::assertIsNotArrayOfObjects( |
|
18 | 16 | $attributes, |
|
19 | 16 | Messages::ATTRIBUTES_OBJECT_IS_NOT_ARRAY |
|
20 | ); |
||
21 | |||
22 | 14 | static::assertFieldHasNoForbiddenMemberName($attributes); |
|
23 | |||
24 | 13 | foreach ($attributes as $key => $value) { |
|
25 | 13 | static::assertIsValidMemberName($key); |
|
26 | } |
||
29 |