Skip to content
Snippets Groups Projects
FinalForm.php 703 B
Newer Older
  • Learn to ignore specific revisions
  • Marcello Pivanti's avatar
    Marcello Pivanti committed
    <?php
    
    Marcello Pivanti's avatar
    Marcello Pivanti committed
    namespace app\models;
    
    use yii\base\Model;
    
    /**
     * ContactForm is the model behind the contact form.
     */
    
    class FinalForm extends Model implements \elitedivision\amos\wizflow\WizflowModelInterface
    
    Marcello Pivanti's avatar
    Marcello Pivanti committed
    {
        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 ?',
            ];
        }
    }