Files
backend/src/Service/Client/Stub/NoopCalltouchClientService.php
T
2026-05-27 19:36:32 +03:00

25 lines
641 B
PHP

<?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];
}
}