Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
1 / 1 |
| GroupOlxConnectorException | |
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
2 | |
100.00% |
1 / 1 |
| notImplemented | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| invalidFeed | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace ImovelZapAi\Publishing\Connectors\GroupOlx\Domain\Exceptions; |
| 6 | |
| 7 | use RuntimeException; |
| 8 | |
| 9 | final class GroupOlxConnectorException extends RuntimeException |
| 10 | { |
| 11 | public static function notImplemented(string $capability): self |
| 12 | { |
| 13 | return new self("Grupo OLX connector: {$capability} ainda não implementado."); |
| 14 | } |
| 15 | |
| 16 | public static function invalidFeed(string $reason): self |
| 17 | { |
| 18 | return new self("Feed VRSync inválido para o Grupo OLX: {$reason}"); |
| 19 | } |
| 20 | } |