| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | public function detect(): ?Generator |
||
| 36 | { |
||
| 37 | $response = $this->getOriginalResponse(); |
||
| 38 | |||
| 39 | if (0 === $response->count()) { |
||
| 40 | return null; |
||
| 41 | } |
||
| 42 | |||
| 43 | /** @var EntityAnnotation $item */ |
||
| 44 | foreach ($response as $item) { |
||
| 45 | yield new LabelData( |
||
| 46 | description: $item->getDescription(), |
||
| 47 | ); |
||
| 51 |