for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the LineMob package.
*
* (c) Ishmael Doss <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace LineMob\Core\Template;
/**
* @author YokYukYik <[email protected]>
class ConfirmTemplate extends AbstractTemplate
{
use ActionTemplateTrait;
* @var string
public $altText = 'This is confirm template.';
public $title = 'Are You sure?';
* @var Action[]
public $actions = [];
* @param string $label
* @param string $text
* @param string $type
public function addYesAction($label = 'Yes', $text = 'yes', $type = Action::TYPE_MESSAGE)
$this->actions[0] = new Action($label, $text, $type);
}
public function addNoAction($label = 'No', $text = 'no', $type = Action::TYPE_MESSAGE)
$this->actions[1] = new Action($label, $text, $type);