Changeset View
Changeset View
Standalone View
Standalone View
src/app/Plan.php
Show All 14 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 int $free_months | * @property int $free_months | ||||
* @property string $id | * @property string $id | ||||
* @property string $mode Plan signup mode (email|token) | * @property string $mode Plan signup mode (Plan::MODE_*) | ||||
* @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 const MODE_EMAIL = 'email'; | |||||
public const MODE_TOKEN = 'token'; | |||||
public const MODE_MANDATE = 'mandate'; | |||||
/** @var bool Indicates if the model should be timestamped. */ | |||||
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', | 'mode', | ||||
'name', | 'name', | ||||
'description', | 'description', | ||||
▲ Show 20 Lines • Show All 83 Lines • Show Last 20 Lines |