1 | <?php |
||
26 | class AttachmentAction |
||
27 | { |
||
28 | const STYLE_DEFAULT = 'default'; |
||
29 | const STYLE_PRIMARY = 'primary'; |
||
30 | const STYLE_DANGER = 'danger'; |
||
31 | |||
32 | const TYPE_BUTTON = 'button'; |
||
33 | const TYPE_SELECT = 'select'; |
||
34 | |||
35 | /** @var string */ |
||
36 | private $name; |
||
37 | |||
38 | /** @var string */ |
||
39 | private $text; |
||
40 | |||
41 | /** @var string */ |
||
42 | private $url; |
||
43 | |||
44 | /** @var string */ |
||
45 | private $style; |
||
46 | |||
47 | /** @var string */ |
||
48 | private $type; |
||
49 | |||
50 | /** @var string */ |
||
51 | private $value; |
||
52 | |||
53 | /** @var AttachmentActionConfirm */ |
||
54 | private $confirm; |
||
55 | |||
56 | /** |
||
57 | * AttachmentAction constructor. |
||
58 | * |
||
59 | * @param string $text |
||
60 | * @param string $url |
||
61 | * @param string $style |
||
62 | * @param AttachmentActionConfirm $confirm |
||
63 | */ |
||
64 | public function __construct( |
||
78 | |||
79 | /** |
||
80 | * @return string |
||
81 | */ |
||
82 | public function getName(): string |
||
86 | |||
87 | /** |
||
88 | * @param string $name |
||
89 | * |
||
90 | * @return AttachmentAction |
||
91 | */ |
||
92 | public function setName(string $name): AttachmentAction |
||
98 | |||
99 | /** |
||
100 | * @return string |
||
101 | */ |
||
102 | public function getText(): string |
||
106 | |||
107 | /** |
||
108 | * @param string $text |
||
109 | * |
||
110 | * @return AttachmentAction |
||
111 | */ |
||
112 | public function setText(string $text): AttachmentAction |
||
118 | |||
119 | /** |
||
120 | * @return string |
||
121 | */ |
||
122 | public function getUrl(): string |
||
126 | |||
127 | /** |
||
128 | * @param string $url |
||
129 | * |
||
130 | * @return AttachmentAction |
||
131 | */ |
||
132 | public function setUrl(string $url): AttachmentAction |
||
138 | |||
139 | /** |
||
140 | * @return string |
||
141 | */ |
||
142 | public function getStyle(): string |
||
146 | |||
147 | /** |
||
148 | * @param string $style |
||
149 | * |
||
150 | * @return AttachmentAction |
||
151 | */ |
||
152 | public function setStyle(string $style): AttachmentAction |
||
158 | |||
159 | /** |
||
160 | * @return string |
||
161 | */ |
||
162 | public function getType(): string |
||
166 | |||
167 | /** |
||
168 | * @param string $type |
||
169 | * |
||
170 | * @return AttachmentAction |
||
171 | */ |
||
172 | public function setType(string $type): AttachmentAction |
||
178 | |||
179 | /** |
||
180 | * @return AttachmentActionConfirm |
||
181 | */ |
||
182 | public function getConfirm(): AttachmentActionConfirm |
||
186 | |||
187 | /** |
||
188 | * @param AttachmentActionConfirm $confirm |
||
189 | * |
||
190 | * @return AttachmentAction |
||
191 | */ |
||
192 | public function setConfirm(AttachmentActionConfirm $confirm): AttachmentAction |
||
198 | |||
199 | /** |
||
200 | * @return string |
||
201 | */ |
||
202 | public function getValue(): string |
||
206 | |||
207 | /** |
||
208 | * @param string $value |
||
209 | * |
||
210 | * @return AttachmentAction |
||
211 | */ |
||
212 | public function setValue(string $value): AttachmentAction |
||
218 | } |
||
219 |