Files
emails/api/src/Model/State/Attachment.php
2022-11-29 08:57:56 -03:00

50 lines
1.1 KiB
PHP

<?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 ?? false;
}
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;
}
}