Skip to content
Snippets Groups Projects
FinalForm.php 1.07 KiB
Newer Older
  • Learn to ignore specific revisions
  • Marcello Pivanti's avatar
    Marcello Pivanti committed
    <?php
    /**
    
     * Copyright 2020 Art-ER S. Cons. P.A.
     * EROI - Emilia Romagna Open Innovation is based on:
     * https://www.open2.0.regione.lombardia.it
    
    Marcello Pivanti's avatar
    Marcello Pivanti committed
     *
    
     * @see https://repo.art-er.it Developers' community
    
     * @license GPLv3
     * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3
     *
    
     * @package    arter
    
    Marcello Pivanti's avatar
    Marcello Pivanti committed
     * @category   CategoryName
     * @author     Elite Division S.r.l.
     */
    
    
    Marcello Pivanti's avatar
    Marcello Pivanti committed
    namespace app\models;
    
    use yii\base\Model;
    
    /**
     * ContactForm is the model behind the contact form.
     */
    
    waltermazza's avatar
    waltermazza committed
    class FinalForm extends Model implements \arter\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 ?',
            ];
        }
    }