API
This commit is contained in:
50
api/src/Model/State/Attachment.php
Normal file
50
api/src/Model/State/Attachment.php
Normal file
@ -0,0 +1,50 @@
|
||||
<?php
|
||||
namespace ProVM\Emails\Model\State;
|
||||
|
||||
use ProVM\Common\Define\Model;
|
||||
|
||||
class Attachment implements Model
|
||||
{
|
||||
protected int $id;
|
||||
protected \ProVM\Emails\Model\Attachment $attachment;
|
||||
protected string $name;
|
||||
protected bool $value;
|
||||
|
||||
public function getId(): int
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
public function getAttachment(): \ProVM\Emails\Model\Attachment
|
||||
{
|
||||
return $this->attachment;
|
||||
}
|
||||
public function getName(): string
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
public function getValue(): bool
|
||||
{
|
||||
return $this->value;
|
||||
}
|
||||
|
||||
public function setId(int $id): Attachment
|
||||
{
|
||||
$this->id = $id;
|
||||
return $this;
|
||||
}
|
||||
public function setAttachment(\ProVM\Emails\Model\Attachment $attachment): Attachment
|
||||
{
|
||||
$this->attachment = $attachment;
|
||||
return $this;
|
||||
}
|
||||
public function setName(string $name): Attachment
|
||||
{
|
||||
$this->name = $name;
|
||||
return $this;
|
||||
}
|
||||
public function setValue(bool $value): Attachment
|
||||
{
|
||||
$this->value = $value;
|
||||
return $this;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user