50 lines
1.1 KiB
PHP
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;
|
|
}
|
|
} |