| 1 | <?php |
||
| 26 | class AttachmentField |
||
| 27 | { |
||
| 28 | /** @var string */ |
||
| 29 | private $title; |
||
| 30 | |||
| 31 | /** @var string */ |
||
| 32 | private $value; |
||
| 33 | |||
| 34 | /** @var bool */ |
||
| 35 | private $short; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * MessageAttachmentField constructor. |
||
| 39 | * |
||
| 40 | * @param string $title |
||
| 41 | * @param string $value |
||
| 42 | * @param bool $short |
||
| 43 | */ |
||
| 44 | public function __construct(string $title = '', string $value = '', bool $short = false) |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @return string |
||
| 53 | */ |
||
| 54 | public function getTitle(): string |
||
| 58 | |||
| 59 | /** |
||
| 60 | * @param string $title |
||
| 61 | * |
||
| 62 | * @return AttachmentField |
||
| 63 | */ |
||
| 64 | public function setTitle(string $title): AttachmentField |
||
| 70 | |||
| 71 | /** |
||
| 72 | * @return string |
||
| 73 | */ |
||
| 74 | public function getValue(): string |
||
| 78 | |||
| 79 | /** |
||
| 80 | * @param string $value |
||
| 81 | * |
||
| 82 | * @return AttachmentField |
||
| 83 | */ |
||
| 84 | public function setValue(string $value): AttachmentField |
||
| 90 | |||
| 91 | /** |
||
| 92 | * @return bool |
||
| 93 | */ |
||
| 94 | public function isShort(): bool |
||
| 98 | |||
| 99 | /** |
||
| 100 | * @param bool $short |
||
| 101 | * |
||
| 102 | * @return AttachmentField |
||
| 103 | */ |
||
| 104 | public function setShort(bool $short): AttachmentField |
||
| 110 | } |
||
| 111 |