chore: initial import for test contour
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Service\Client\Stub;
|
||||
|
||||
use App\Dto\CalltouchCreateRequestDto;
|
||||
use App\Service\Client\Interfaces\CalltouchClientServiceInterface;
|
||||
use Psr\Log\LoggerInterface;
|
||||
|
||||
final class NoopCalltouchClientService implements CalltouchClientServiceInterface
|
||||
{
|
||||
public function __construct(
|
||||
private LoggerInterface $logger,
|
||||
) {
|
||||
}
|
||||
|
||||
public function requestCreate(CalltouchCreateRequestDto $requests): array
|
||||
{
|
||||
$this->logger->info('Calltouch lead suppressed (noop stub)', [
|
||||
'regionId' => $requests->regionId ?? null,
|
||||
]);
|
||||
|
||||
return ['leadId' => 'test-stub', 'stub' => true];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user