Conditions | 3 |
Paths | 3 |
Total Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
46 | 4 | public function performUnfreeze() |
|
47 | { |
||
48 | 4 | $items = $this->getItems(); |
|
49 | |||
50 | 4 | self::ensureItemsAreTraversable($items); |
|
51 | |||
52 | 3 | foreach ($items as $item) { |
|
53 | 3 | if (! $item instanceof FreezableInterface) { |
|
54 | 1 | throw new \UnexpectedValueException( |
|
55 | 1 | 'Item must be instance of Clippings\Freezable\FreezableInterface to be unfreezed' |
|
56 | ); |
||
57 | } |
||
58 | |||
59 | 2 | $item->unfreeze(); |
|
60 | } |
||
61 | 2 | } |
|
62 | |||
68 |