| Total Complexity | 3 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Changes | 4 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 20 | class ConfirmTemplate extends AbstractTemplate |
||
| 21 | { |
||
| 22 | use ActionTemplateTrait; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var string |
||
| 26 | */ |
||
| 27 | public $altText = 'This is confirm template.'; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @var string |
||
| 31 | */ |
||
| 32 | public $title = 'Are You sure?'; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @var Action[] |
||
| 36 | */ |
||
| 37 | public $actions = []; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * {@inheritdoc} |
||
| 41 | */ |
||
| 42 | public function getTemplate() |
||
| 47 | )); |
||
| 48 | } |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @param string $label |
||
| 52 | * @param string $text |
||
| 53 | * @param string $type |
||
| 54 | */ |
||
| 55 | public function addYesAction($label = 'Yes', $text = 'yes', $type = Action::TYPE_MESSAGE) |
||
| 58 | } |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @param string $label |
||
| 62 | * @param string $text |
||
| 63 | * @param string $type |
||
| 64 | */ |
||
| 65 | public function addNoAction($label = 'No', $text = 'no', $type = Action::TYPE_MESSAGE) |
||
| 70 |