<?php

namespace frontend\models;

use Yii;

/**
 * This is the model class for table "pengumuman".
 *
 * @property int $id
 * @property string $judulPengumuman
 * @property string $isiPengumuman
 * @property string $create_at
 * @property string $update_at
 */
class Pengumuman extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'pengumuman';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['judulPengumuman', 'isiPengumuman', 'create_at', 'update_at'], 'required'],
            [['create_at', 'update_at'], 'safe'],
            [['judulPengumuman'], 'string', 'max' => 100],
            [['isiPengumuman'], 'string', 'max' => 250],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'judulPengumuman' => 'Judul Pengumuman',
            'isiPengumuman' => 'Isi Pengumuman',

        ];
    }
}