0a450bf679
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
24 lines
762 B
PHP
24 lines
762 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Services\Autopodbor\Agent\Dto;
|
|
|
|
final class CollectedSource
|
|
{
|
|
/** @param array<int,array{label:string,url:?string}> $sources */
|
|
public function __construct(
|
|
public readonly string $signalType, // call | site
|
|
public readonly string $identifier, // 7XXXXXXXXXX | домен
|
|
public readonly ?string $phoneKind, // real | substitute | null
|
|
public readonly ?string $phoneType, // city | mobile | tollfree | null
|
|
public readonly ?string $office, // подпись филиала | null
|
|
public readonly array $sources, // «где нашли»
|
|
) {}
|
|
|
|
public function confirmations(): int
|
|
{
|
|
return count($this->sources);
|
|
}
|
|
}
|