<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "branches".
 *
 * @property int $id
 * @property string $address
 * @property string $location_longitude
 * @property string $location_latitude
 * @property string $phone_num
 * @property string $facebook_link
 * @property string $instagram_link
 * @property string $telegram_link
 * @property string $whatsapp_link
 */
class Branches extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'branches';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['arabic_name', 'english_name', 'arabic_address', 'english_address', 'location', 'phone_num'], 'required'],
            [['location'], 'string', 'max' => 2000],
            [['phone_num'], 'integer'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('app', 'ID'),
            'arabic_name' => Yii::t('app', 'Arabic Name'),
            'english_name' => Yii::t('app', 'English Name'),
            'arabic_address' => Yii::t('app', 'Arabic Address'),
            'english_address' => Yii::t('app', 'English Address'),
            'location' => Yii::t('app', 'Location'),
            'phone_num' => Yii::t('app', 'Phone Number'),
        ];
    }
}
