| Total Complexity | 2 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | class ConfirmTemplate extends AbstractTemplate |
||
| 18 | { |
||
| 19 | use ActionTemplateTrait; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | public $altText = 'This is confirm template.'; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var string |
||
| 28 | */ |
||
| 29 | public $title = 'Are You sure?'; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @var Action[] |
||
| 33 | */ |
||
| 34 | public $actions = []; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @param string $label |
||
| 38 | * @param string $text |
||
| 39 | * @param string $type |
||
| 40 | */ |
||
| 41 | public function addYesAction($label = 'Yes', $text = 'yes', $type = Action::TYPE_MESSAGE) |
||
| 44 | } |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @param string $label |
||
| 48 | * @param string $text |
||
| 49 | * @param string $type |
||
| 50 | */ |
||
| 51 | public function addNoAction($label = 'No', $text = 'no', $type = Action::TYPE_MESSAGE) |
||
| 56 |