Changeset View
Changeset View
Standalone View
Standalone View
src/app/Plan.php
Show All 13 Lines | |||||
* | * | ||||
* A "Family Plan" as such may exist of "2 or more Kolab packages", | * A "Family Plan" as such may exist of "2 or more Kolab packages", | ||||
* and apply a discount for the third and further Kolab packages. | * and apply a discount for the third and further Kolab packages. | ||||
* | * | ||||
* @property string $description | * @property string $description | ||||
* @property int $discount_qty | * @property int $discount_qty | ||||
* @property int $discount_rate | * @property int $discount_rate | ||||
* @property string $id | * @property string $id | ||||
* @property string $mode Plan signup mode (email|token) | |||||
* @property string $name | * @property string $name | ||||
* @property \App\Package[] $packages | * @property \App\Package[] $packages | ||||
* @property datetime $promo_from | * @property datetime $promo_from | ||||
* @property datetime $promo_to | * @property datetime $promo_to | ||||
* @property ?int $tenant_id | * @property ?int $tenant_id | ||||
* @property string $title | * @property string $title | ||||
*/ | */ | ||||
class Plan extends Model | class Plan extends Model | ||||
{ | { | ||||
use BelongsToTenantTrait; | use BelongsToTenantTrait; | ||||
use HasTranslations; | use HasTranslations; | ||||
use UuidStrKeyTrait; | use UuidStrKeyTrait; | ||||
public $timestamps = false; | public $timestamps = false; | ||||
/** @var array<int, string> The attributes that are mass assignable */ | /** @var array<int, string> The attributes that are mass assignable */ | ||||
protected $fillable = [ | protected $fillable = [ | ||||
'title', | 'title', | ||||
'mode', | |||||
'name', | 'name', | ||||
'description', | 'description', | ||||
// a start and end datetime for this promotion | // a start and end datetime for this promotion | ||||
'promo_from', | 'promo_from', | ||||
'promo_to', | 'promo_to', | ||||
// discounts start at this quantity | // discounts start at this quantity | ||||
'discount_qty', | 'discount_qty', | ||||
// the rate of the discount for this plan | // the rate of the discount for this plan | ||||
▲ Show 20 Lines • Show All 71 Lines • Show Last 20 Lines |