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\Infrastructure\Persistence\Eloquent\GroupOlxPublicationLogModel; |
| 8 | |
| 9 | /** |
| 10 | * Grava PublicationLogs do Grupo OLX — apenas append (nunca exclui). |
| 11 | */ |
| 12 | interface GroupOlxPublicationLogWriterInterface |
| 13 | { |
| 14 | /** |
| 15 | * @param list<string> $errors |
| 16 | * @param list<string> $warnings |
| 17 | */ |
| 18 | public function record( |
| 19 | string $tenantId, |
| 20 | int $listingCount, |
| 21 | int $durationMs, |
| 22 | bool $success, |
| 23 | array $errors = [], |
| 24 | array $warnings = [], |
| 25 | ?int $triggeredBy = null, |
| 26 | ?string $contentHash = null, |
| 27 | ?string $version = null, |
| 28 | ): GroupOlxPublicationLogModel; |
| 29 | } |