-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'mail-stuffs' into 'master'
mail resources See merge request transip/restapi-php-library!166
- Loading branch information
Showing
8 changed files
with
720 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
<?php | ||
|
||
namespace Transip\Api\Library\Entity\Email; | ||
|
||
use Transip\Api\Library\Entity\AbstractEntity; | ||
|
||
class MailForward extends AbstractEntity | ||
{ | ||
/** | ||
* @var int $id | ||
*/ | ||
public $id; | ||
|
||
/** | ||
* @var string $localPart | ||
*/ | ||
public $localPart; | ||
|
||
/** | ||
* @var string $domain | ||
*/ | ||
public $domain; | ||
|
||
/** | ||
* @var string $forwardTo | ||
*/ | ||
public $forwardTo; | ||
|
||
/** | ||
* @var string $status | ||
*/ | ||
public $status; | ||
|
||
/** | ||
* @return int | ||
*/ | ||
public function getId(): int | ||
{ | ||
return $this->id; | ||
} | ||
|
||
/** | ||
* @param int $id | ||
*/ | ||
public function setId(int $id): void | ||
{ | ||
$this->id = $id; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getLocalPart(): string | ||
{ | ||
return $this->localPart; | ||
} | ||
|
||
/** | ||
* @param string $localPart | ||
*/ | ||
public function setLocalPart(string $localPart): void | ||
{ | ||
$this->localPart = $localPart; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getDomain(): string | ||
{ | ||
return $this->domain; | ||
} | ||
|
||
/** | ||
* @param string $domain | ||
*/ | ||
public function setDomain(string $domain): void | ||
{ | ||
$this->domain = $domain; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getForwardTo(): string | ||
{ | ||
return $this->forwardTo; | ||
} | ||
|
||
/** | ||
* @param string $forwardTo | ||
*/ | ||
public function setForwardTo(string $forwardTo): void | ||
{ | ||
$this->forwardTo = $forwardTo; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getStatus(): string | ||
{ | ||
return $this->status; | ||
} | ||
|
||
/** | ||
* @param string $status | ||
*/ | ||
public function setStatus(string $status): void | ||
{ | ||
$this->status = $status; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
<?php | ||
|
||
namespace Transip\Api\Library\Entity\Email; | ||
|
||
use Transip\Api\Library\Entity\AbstractEntity; | ||
|
||
class MailList extends AbstractEntity | ||
{ | ||
/** | ||
* @var int | ||
*/ | ||
public $id; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
public $name; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
public $emailAddress; | ||
|
||
/** | ||
* @var string[] | ||
*/ | ||
public $entries; | ||
|
||
/** | ||
* @return int | ||
*/ | ||
public function getId(): int | ||
{ | ||
return $this->id; | ||
} | ||
|
||
/** | ||
* @param int $id | ||
*/ | ||
public function setId(string $id): void | ||
{ | ||
$this->id = $id; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getName(): string | ||
{ | ||
return $this->name; | ||
} | ||
|
||
/** | ||
* @param string $name | ||
*/ | ||
public function setName(string $name): void | ||
{ | ||
$this->name = $name; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getEmailAddress(): string | ||
{ | ||
return $this->emailAddress; | ||
} | ||
|
||
/** | ||
* @param string $emailAddress | ||
*/ | ||
public function setEmailAddress(string $emailAddress): void | ||
{ | ||
$this->emailAddress = $emailAddress; | ||
} | ||
|
||
/** | ||
* @return string[] | ||
*/ | ||
public function getEntries(): array | ||
{ | ||
return $this->entries; | ||
} | ||
|
||
/** | ||
* @param string[] $entries | ||
*/ | ||
public function setEntries(array $entries): void | ||
{ | ||
$this->entries = $entries; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,176 @@ | ||
<?php | ||
|
||
namespace Transip\Api\Library\Entity\Email; | ||
|
||
use Transip\Api\Library\Entity\AbstractEntity; | ||
|
||
class Mailbox extends AbstractEntity | ||
{ | ||
/** | ||
* @var string $identifier | ||
*/ | ||
public $identifier; | ||
|
||
/** | ||
* @var string $localPart | ||
*/ | ||
public $localPart; | ||
|
||
/** | ||
* @var string $domain | ||
*/ | ||
public $domain; | ||
|
||
/** | ||
* @var string $forwardTo | ||
*/ | ||
public $forwardTo; | ||
|
||
/** | ||
* @var int $availableDiskSpace | ||
*/ | ||
public $availableDiskSpace; | ||
|
||
/** | ||
* @var float $usedDiskSpace | ||
*/ | ||
public $usedDiskSpace; | ||
|
||
/** | ||
* @var string $status | ||
*/ | ||
public $status; | ||
|
||
/** | ||
* @var bool $isLocked | ||
*/ | ||
public $isLocked; | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getIdentifier(): string | ||
{ | ||
return $this->identifier; | ||
} | ||
|
||
/** | ||
* @param string $identifier | ||
*/ | ||
public function setIdentifier(string $identifier): void | ||
{ | ||
$this->identifier = $identifier; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getLocalPart(): string | ||
{ | ||
return $this->localPart; | ||
} | ||
|
||
/** | ||
* @param string $localPart | ||
*/ | ||
public function setLocalPart(string $localPart): void | ||
{ | ||
$this->localPart = $localPart; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getDomain(): string | ||
{ | ||
return $this->domain; | ||
} | ||
|
||
/** | ||
* @param string $domain | ||
*/ | ||
public function setDomain(string $domain): void | ||
{ | ||
$this->domain = $domain; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getForwardTo(): string | ||
{ | ||
return $this->forwardTo; | ||
} | ||
|
||
/** | ||
* @param string $forwardTo | ||
*/ | ||
public function setForwardTo(string $forwardTo): void | ||
{ | ||
$this->forwardTo = $forwardTo; | ||
} | ||
|
||
/** | ||
* @return int | ||
*/ | ||
public function getAvailableDiskSpace(): int | ||
{ | ||
return $this->availableDiskSpace; | ||
} | ||
|
||
/** | ||
* @param int $availableDiskSpace | ||
*/ | ||
public function setAvailableDiskSpace(int $availableDiskSpace): void | ||
{ | ||
$this->availableDiskSpace = $availableDiskSpace; | ||
} | ||
|
||
/** | ||
* @return float | ||
*/ | ||
public function getUsedDiskSpace(): float | ||
{ | ||
return $this->usedDiskSpace; | ||
} | ||
|
||
/** | ||
* @param float $usedDiskSpace | ||
*/ | ||
public function setUsedDiskSpace(float $usedDiskSpace): void | ||
{ | ||
$this->usedDiskSpace = $usedDiskSpace; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getStatus(): string | ||
{ | ||
return $this->status; | ||
} | ||
|
||
/** | ||
* @param string $status | ||
*/ | ||
public function setStatus(string $status): void | ||
{ | ||
$this->status = $status; | ||
} | ||
|
||
/** | ||
* @return bool | ||
*/ | ||
public function isLocked(): bool | ||
{ | ||
return $this->isLocked; | ||
} | ||
|
||
/** | ||
* @param bool $isLocked | ||
*/ | ||
public function setIsLocked(bool $isLocked): void | ||
{ | ||
$this->isLocked = $isLocked; | ||
} | ||
} |
Oops, something went wrong.