<?php
declare(strict_types=1);
namespace Slivki\Response\Offer\Location;
final class OfferLocationPhoneNumberResponse implements \JsonSerializable
{
private string $phoneNumber;
private string $label;
public function __construct(string $phoneNumber, string $label)
{
$this->phoneNumber = $phoneNumber;
$this->label = $label;
}
public function jsonSerialize(): array
{
return [
'phoneNumber' => $this->phoneNumber,
'label' => $this->label,
];
}
}