| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 50 | public function visit(EzInfoCollectionAttribute $ezInfoCollectionAttribute, ContentType $contentType): string |
||
| 51 | { |
||
| 52 | foreach ($this->visitors as $visitor) { |
||
| 53 | if ($visitor->accept($ezInfoCollectionAttribute, $contentType)) { |
||
| 54 | return $visitor->visit($ezInfoCollectionAttribute, $contentType); |
||
| 55 | } |
||
| 56 | } |
||
| 57 | |||
| 58 | throw new OutOfBoundsException( |
||
| 59 | 'No visitor registered for field anonymization' |
||
| 60 | ); |
||
| 61 | } |
||
| 62 | } |
||
| 63 |