Changeset View
Changeset View
Standalone View
Standalone View
src/app/Sku.php
Show All 22 Lines | |||||
* @property int $units_free | * @property int $units_free | ||||
*/ | */ | ||||
class Sku extends Model | class Sku extends Model | ||||
{ | { | ||||
use BelongsToTenantTrait; | use BelongsToTenantTrait; | ||||
use HasTranslations; | use HasTranslations; | ||||
use UuidStrKeyTrait; | use UuidStrKeyTrait; | ||||
/** @var array<string, string> The attributes that should be cast */ | |||||
protected $casts = [ | protected $casts = [ | ||||
'units_free' => 'integer' | 'units_free' => 'integer' | ||||
]; | ]; | ||||
/** @var array<int, string> The attributes that are mass assignable */ | |||||
protected $fillable = [ | protected $fillable = [ | ||||
'active', | 'active', | ||||
'cost', | 'cost', | ||||
'description', | 'description', | ||||
'fee', | 'fee', | ||||
'handler_class', | 'handler_class', | ||||
'name', | 'name', | ||||
// persist for annual domain registration | // persist for annual domain registration | ||||
'period', | 'period', | ||||
'title', | 'title', | ||||
'units_free', | 'units_free', | ||||
]; | ]; | ||||
/** @var array Translatable properties */ | /** @var array<int, string> Translatable properties */ | ||||
public $translatable = [ | public $translatable = [ | ||||
'name', | 'name', | ||||
'description', | 'description', | ||||
]; | ]; | ||||
/** | /** | ||||
* List the entitlements that consume this SKU. | * List the entitlements that consume this SKU. | ||||
* | * | ||||
Show All 20 Lines |