1 | <?php |
||
26 | class AttachmentActionConfirm |
||
27 | { |
||
28 | const BUTTON_DEFAULT_TEXT_OK = 'OK'; |
||
29 | const BUTTON_DEFAULT_TEXT_DISMISS = 'Cancel'; |
||
30 | |||
31 | /** @var bool */ |
||
32 | private $active; |
||
33 | |||
34 | /** @var string */ |
||
35 | private $title; |
||
36 | |||
37 | /** @var string */ |
||
38 | private $text; |
||
39 | |||
40 | /** @var string */ |
||
41 | private $buttonOkText; |
||
42 | |||
43 | /** @var string */ |
||
44 | private $buttonDismissText; |
||
45 | |||
46 | /** |
||
47 | * AttachmentActionConfirm constructor. |
||
48 | * |
||
49 | * @param bool $active |
||
50 | * @param string $title |
||
51 | * @param string $text |
||
52 | * @param string $buttonOkText |
||
53 | * @param string $buttonDismissText |
||
54 | */ |
||
55 | public function __construct( |
||
68 | |||
69 | /** |
||
70 | * @return bool |
||
71 | */ |
||
72 | public function isActive(): bool |
||
76 | |||
77 | /** |
||
78 | * @param bool $active |
||
79 | * |
||
80 | * @return AttachmentActionConfirm |
||
81 | */ |
||
82 | public function setActive(bool $active): AttachmentActionConfirm |
||
88 | |||
89 | /** |
||
90 | * @return string |
||
91 | */ |
||
92 | public function getTitle(): string |
||
96 | |||
97 | /** |
||
98 | * @param string $title |
||
99 | * |
||
100 | * @return AttachmentActionConfirm |
||
101 | */ |
||
102 | public function setTitle(string $title): AttachmentActionConfirm |
||
108 | |||
109 | /** |
||
110 | * @return string |
||
111 | */ |
||
112 | public function getText(): string |
||
116 | |||
117 | /** |
||
118 | * @param string $text |
||
119 | * |
||
120 | * @return AttachmentActionConfirm |
||
121 | */ |
||
122 | public function setText(string $text): AttachmentActionConfirm |
||
128 | |||
129 | /** |
||
130 | * @return string |
||
131 | */ |
||
132 | public function getButtonOkText(): string |
||
136 | |||
137 | /** |
||
138 | * @param string $buttonOkText |
||
139 | * |
||
140 | * @return AttachmentActionConfirm |
||
141 | */ |
||
142 | public function setButtonOkText(string $buttonOkText): AttachmentActionConfirm |
||
148 | |||
149 | /** |
||
150 | * @return string |
||
151 | */ |
||
152 | public function getButtonDismissText(): string |
||
156 | |||
157 | /** |
||
158 | * @param string $buttonDismissText |
||
159 | * |
||
160 | * @return AttachmentActionConfirm |
||
161 | */ |
||
162 | public function setButtonDismissText(string $buttonDismissText): AttachmentActionConfirm |
||
168 | } |
||
169 |