Files
provider_jmapc/lib/Jmap/FM/Response/Contacts/ContactPhoneParameters.php
2026-02-10 20:33:10 -05:00

33 lines
645 B
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: Sebastian Krupinski <krupinski01@gmail.com>
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace KTXM\ProviderJmapc\Jmap\FM\Response\Contacts;
use JmapClient\Responses\ResponseParameters;
class ContactPhoneParameters extends ResponseParameters {
public function type(): ?string {
return $this->parameter('type') ?? 'home';
}
public function value(): ?string {
return $this->parameter('value');
}
public function label(): ?string {
return $this->parameter('label');
}
public function default(): bool {
return (bool)$this->parameter('isDefault');
}
}