FinalForm.php 703 Bytes
Newer Older
Marcello Pivanti's avatar
Marcello Pivanti committed
1
<?php
Aster's avatar
Aster committed
2

Marcello Pivanti's avatar
Marcello Pivanti committed
3
4
5
6
7
8
9
namespace app\models;

use yii\base\Model;

/**
 * ContactForm is the model behind the contact form.
 */
Aster's avatar
Aster committed
10
class FinalForm extends Model implements \elitedivision\amos\wizflow\WizflowModelInterface
Marcello Pivanti's avatar
Marcello Pivanti committed
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{
    public $rate;
    public $status;

    /**
     * @return array the validation rules.
     */
    public function rules()
    {
        return [
            [['rate'], 'required'],
        ];
    }

    public function summary()
    {
        return 'this is : ' . $this->rate;
    }

    /**
     * @return array customized attribute labels
     */
    public function attributeLabels()
    {
        return [
            'rate' => 'Did you like your wizflow experience ?',
        ];
    }
}