| Conditions | 3 |
| Paths | 3 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 76 | public function validatedContent(string $type): ErrorHandledCollectionInterface |
||
| 77 | { |
||
| 78 | foreach ($this->items as $item) { |
||
| 79 | if (! $item instanceof $type) { |
||
| 80 | throw new InvalidContentException('All items on ['.self::class.'] must to be instances of ['.$type.'].'); |
||
| 81 | } |
||
| 82 | } |
||
| 83 | |||
| 84 | return $this; |
||
| 85 | } |
||
| 87 |