MetaFox

SavedListMember extends Model
in package
implements Entity, IsNotifyInterface Uses HasEntity, HasUserMorph

Class Saved.

Tags
mixin

Builder

Table of Contents

Interfaces

Entity
Interface Entity.
IsNotifyInterface
Interface Entity.

Constants

ENTITY_TYPE  = 'saved_list_member'

Properties

$collection  : SavedList
$id  : int
$list_id  : int
$timestamps  : mixed
$user_id  : int
$user_type  : string
$fillable  : mixed
$table  : mixed

Methods

collection()  : HasOne
entityId()  : int
entityType()  : string
getUserAttribute()  : mixed
getUserEntityAttribute()  : mixed
isUser()  : bool
check if $user is the user (creator) of entity.
moduleName()  : string
toNotification()  : array<string|int, mixed>|null
creator result must contain User owner.
user()  : MorphTo
userEntity()  : BelongsTo
userId()  : int
userType()  : string

Constants

Properties

$fillable

protected mixed $fillable = ['list_id', 'user_id', 'user_type']

Methods

entityId()

public entityId() : int
Return values
int

entityType()

public entityType() : 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

toNotification()

creator result must contain User owner.

public toNotification() : array<string|int, mixed>|null

notification class.

Return values
array<string|int, mixed>|null

userEntity()

public userEntity() : BelongsTo
Return values
BelongsTo

userType()

public userType() : string
Return values
string

        
On this page

Search results