MetaFox

CancelReason extends Model
in package
implements Entity Uses HasEntity, HasFactory, HasUserMorph, HasTranslatableAttributes

Class CancelReason.

Table of Contents

Interfaces

Entity
Interface Entity.

Constants

ENTITY_TYPE  = 'user_cancel_reason'

Properties

$admin_browse_url  : string
$id  : int
$is_active  : int
$ordering  : int
$phrase_var  : string
$title  : string
$appends  : mixed
$fillable  : array<string|int, string>
$table  : mixed
$translatableAttributes  : mixed

Methods

entityId()  : int
entityType()  : string
factory()  : CancelReasonFactory
getAdminBrowseUrlAttribute()  : string
getTitleAttribute()  : string
getUserAttribute()  : mixed
getUserEntityAttribute()  : mixed
isUser()  : bool
check if $user is the user (creator) of entity.
moduleName()  : string
user()  : MorphTo
userEntity()  : BelongsTo
userId()  : int
userType()  : string
newFactory()  : CancelReasonFactory

Constants

ENTITY_TYPE

public mixed ENTITY_TYPE = 'user_cancel_reason'

Properties

$fillable

protected array<string|int, string> $fillable = ['user_id', 'user_type', 'owner_id', 'owner_type', 'phrase_var', 'is_active', 'ordering', 'updated_at', 'created_at']

$translatableAttributes

protected mixed $translatableAttributes = ['phrase_var']

Methods

entityId()

public entityId() : int
Return values
int

entityType()

public entityType() : string
Return values
string

factory()

public static factory(mixed $parameters) : CancelReasonFactory
Parameters
$parameters : mixed
Return values
CancelReasonFactory

getAdminBrowseUrlAttribute()

public getAdminBrowseUrlAttribute() : string
Return values
string

getTitleAttribute()

public getTitleAttribute() : string
Return values
string

getUserEntityAttribute()

public getUserEntityAttribute() : mixed

isUser()

check if $user is the user (creator) of entity.

public isUser(User $user) : bool
Parameters
$user : User
Return values
bool

moduleName()

public moduleName() : string
Return values
string

userEntity()

public userEntity() : BelongsTo
Return values
BelongsTo

userType()

public userType() : string
Return values
string

newFactory()

protected static newFactory() : CancelReasonFactory
Return values
CancelReasonFactory

        
On this page

Search results