| Total Complexity | 5 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | class SubscribeForm extends Widget |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var bool |
||
| 18 | */ |
||
| 19 | public $status = true; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var SubscribeFormModel |
||
| 23 | */ |
||
| 24 | public $model; |
||
| 25 | |||
| 26 | public function init() |
||
| 27 | { |
||
| 28 | parent::init(); |
||
| 29 | $this->model = $this->model ?: new SubscribeFormModel(); |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @return string|void |
||
| 34 | */ |
||
| 35 | public function run() |
||
| 40 | } |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Register resource |
||
| 45 | */ |
||
| 46 | protected function registerResource() |
||
| 52 |