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\GroupOlxPublicFeedData; |
| 8 | use ImovelZapAi\Publishing\Domain\Canonical\NormalizedListing; |
| 9 | |
| 10 | /** |
| 11 | * Orquestra o fluxo oficial do conector Grupo OLX: |
| 12 | * NormalizedListing → build VRSync → validate → URL pública. |
| 13 | * |
| 14 | * Isola regras do portal do restante do Publishing Hub. |
| 15 | */ |
| 16 | interface GroupOlxConnectorInterface |
| 17 | { |
| 18 | public function slug(): string; |
| 19 | |
| 20 | /** |
| 21 | * @param list<NormalizedListing> $listings |
| 22 | */ |
| 23 | public function publishFeed(string $tenantId, array $listings): GroupOlxPublicFeedData; |
| 24 | |
| 25 | public function publishListing(string $tenantId, NormalizedListing $listing): GroupOlxPublicFeedData; |
| 26 | |
| 27 | public function publicFeedUrl(string $tenantId): string; |
| 28 | } |