<?php
namespace App\Model\Entity;

use Cake\ORM\Entity;

/**
 * Course Entity
 *
 * @property int $id
 * @property string $name
 * @property int $course_category_id
 * @property int $qualification_type_id
 * @property int $level
 * @property double $total_credit
 * @property string $code
 * @property string $progression_routes
 * @property int $availability_type
 * @property int $delivery_mode
 * @property int $duration
 * @property int|null $qualification_time
 * @property string|null $centre_specification_link
 * @property string|null $image_path
 * @property string $assessment
 * @property string|null $description
 * @property int|null $status
 * @property int $accreditation_status
 * @property int|null $created_by
 * @property int|null $updated_by
 * @property \Cake\I18n\Time|null $created_at
 * @property \Cake\I18n\Time|null $updated_at
 */
class Course extends Entity
{
    /**
     * Fields that can be mass assigned using newEntity() or patchEntity().
     *
     * Note that when '*' is set to true, this allows all unspecified fields to
     * be mass assigned. For security purposes, it is advised to set '*' to false
     * (or remove it), and explicitly make individual fields accessible as needed.
     *
     * @var array
     */
    protected $_accessible = [
        'name' => true,
        'course_category_id' => true,
        'qualification_type_id' => true,
        'level'=>true,
        'total_credit'=>true,
        'code'=>true,
        'progression_routes'=>true,
        'availability_type'=>true,
        'delivery_mode'=>true,
        'duration'=>true,
        'assessment'=>true,
        'description' => true,
        'qualification_time' => true,
        'centre_specification_link' => true,
        'accreditation_status' => true,
        'image_path' => true,
        'status' => true,
        'created_by' => true,
        'updated_by' => true,
        'created_at' => true,
        'updated_at' => true,
    ];
}
