Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
1 / 1 |
| GroupOlxFeedBuildResultData | |
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
2 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| listingCount | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace ImovelZapAi\Publishing\Connectors\GroupOlx\Application\Data; |
| 6 | |
| 7 | use ImovelZapAi\Publishing\Domain\Feeds\VrSync\ListingDataFeed; |
| 8 | |
| 9 | /** |
| 10 | * Feed VRSync gerado a partir de listagens canônicas — pronto para validação. |
| 11 | */ |
| 12 | final readonly class GroupOlxFeedBuildResultData |
| 13 | { |
| 14 | /** |
| 15 | * @param list<string> $listingCodes |
| 16 | */ |
| 17 | public function __construct( |
| 18 | public ListingDataFeed $feed, |
| 19 | public string $xml, |
| 20 | public array $listingCodes, |
| 21 | ) {} |
| 22 | |
| 23 | public function listingCount(): int |
| 24 | { |
| 25 | return count($this->listingCodes); |
| 26 | } |
| 27 | } |