25 lines
641 B
PHP
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];
|
|
}
|
|
}
|