27 lines
783 B
PHP
27 lines
783 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Services\DaData;
|
|
|
|
/**
|
|
* Распарсенный ответ DaData clean/phone (один номер → один объект), spec §3.6.
|
|
*/
|
|
final class DaDataPhoneResponse
|
|
{
|
|
/**
|
|
* @param array<string, mixed> $raw полный сырой объект ответа (для маскированного лога)
|
|
*/
|
|
public function __construct(
|
|
public readonly ?int $qc,
|
|
public readonly ?int $qcConflict,
|
|
public readonly ?string $type,
|
|
public readonly ?string $phone,
|
|
public readonly ?string $provider,
|
|
public readonly ?string $region,
|
|
public readonly ?string $city,
|
|
public readonly ?string $timezone,
|
|
public readonly array $raw,
|
|
) {}
|
|
}
|