Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace ImovelZapAi\Publishing\Connectors\GroupOlx\Application\Ports; |
| 6 | |
| 7 | use ImovelZapAi\Publishing\Connectors\GroupOlx\Application\Data\GroupOlxMappedListingData; |
| 8 | use ImovelZapAi\Publishing\Domain\Canonical\NormalizedListing; |
| 9 | |
| 10 | /** |
| 11 | * Converte NormalizedListing → DTO VRSync (Grupo OLX). |
| 12 | * |
| 13 | * Não gera XML — apenas mapeia, valida obrigatórios e aplica enums. |
| 14 | */ |
| 15 | interface GroupOlxListingMapperInterface |
| 16 | { |
| 17 | public function map(NormalizedListing $listing): GroupOlxMappedListingData; |
| 18 | |
| 19 | /** |
| 20 | * @param list<NormalizedListing> $listings |
| 21 | * @return list<GroupOlxMappedListingData> |
| 22 | */ |
| 23 | public function mapMany(array $listings): array; |
| 24 | } |