Skip to content

Commit

Permalink
Merge branch 'mail-stuffs' into 'master'
Browse files Browse the repository at this point in the history
mail resources

See merge request transip/restapi-php-library!166
  • Loading branch information
phorick committed Mar 14, 2022
2 parents 5b26882 + cf0b51f commit abad3f8
Show file tree
Hide file tree
Showing 8 changed files with 720 additions and 0 deletions.
113 changes: 113 additions & 0 deletions src/Entity/Email/MailForward.php
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;
}
}
92 changes: 92 additions & 0 deletions src/Entity/Email/MailList.php
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;
}
}
176 changes: 176 additions & 0 deletions src/Entity/Email/Mailbox.php
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;
}
}
Loading

0 comments on commit abad3f8

Please sign in to comment.