Your IP : 216.73.216.79


Current Path : /var/www/html/dosm/backend/modules/statisticsFun/models/
Upload File :
Current File : /var/www/html/dosm/backend/modules/statisticsFun/models/StatsFunUserPoll.php

<?php

namespace backend\modules\statisticsFun\models;

use Yii;

/**
 * This is the model class for table "stats_fun_user_poll".
 *
 * @property int $id
 * @property int $start_id
 * @property int $stats_main_id
 * @property int $child_id
 * @property int $poll_id
 * @property string $poll_question
 * @property string $poll_answer
 */
class StatsFunUserPoll extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'stats_fun_user_poll';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['start_id', 'stats_main_id', 'child_id', 'poll_id'], 'integer'],
            [['poll_question', 'poll_answer'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'start_id' => 'Start ID',
            'stats_main_id' => 'Stats Main ID',
            'child_id' => 'Child ID',
            'poll_id' => 'Poll ID',
            'poll_question' => 'Poll Question',
            'poll_answer' => 'Poll Answer',
        ];
    }
}