Initial commit
This commit is contained in:
44
lib/Jmap/FM/Response/Contacts/ContactLocationParameters.php
Normal file
44
lib/Jmap/FM/Response/Contacts/ContactLocationParameters.php
Normal file
@@ -0,0 +1,44 @@
|
||||
<?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 ContactLocationParameters extends ResponseParameters {
|
||||
|
||||
public function type(): ?string {
|
||||
return $this->parameter('type') ?? 'home';
|
||||
}
|
||||
|
||||
public function label(): ?string {
|
||||
return $this->parameter('label');
|
||||
}
|
||||
|
||||
public function street(): ?string {
|
||||
return $this->parameter('street');
|
||||
}
|
||||
|
||||
public function locality(): ?string {
|
||||
return $this->parameter('locality');
|
||||
}
|
||||
|
||||
public function region(): ?string {
|
||||
return $this->parameter('region');
|
||||
}
|
||||
|
||||
public function code(): ?string {
|
||||
return $this->parameter('postcode');
|
||||
}
|
||||
|
||||
public function country(): ?string {
|
||||
return $this->parameter('country');
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user