<?php
namespace App\Model\Entity;

use Cake\ORM\Entity;

/**
 * Plan Entity
 *
 * @property int $id
 * @property string $name
 * @property float $price
 * @property string $stripe_plan_id
 * @property int $is_default_plan
 * @property int $package_id
 * @property int $download_status
 * @property \Cake\I18n\Time $created_on
 * @property \Cake\I18n\Time $modified_on
 *
 * @property \App\Model\Entity\StripePlan $stripe_plan
 * @property \App\Model\Entity\Package $package
 */
class Plan 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,
        'price' => true,
        'stripe_plan_id' => true,
        'is_default_plan' => true,
        'package_id' => true,
        'download_status' => true,
        'created_on' => true,
        'modified_on' => true,
        'stripe_plan' => true,
        'package' => true
    ];
}
