MetaFox

UserBlocked extends Model
in package
implements Entity Uses HasEntity, HasFactory, HasUserMorph, HasOwnerMorph

Class UserBlocked.

Table of Contents

Interfaces

Entity
Interface Entity.

Constants

ENTITY_TYPE  = 'user_blocked'

Properties

$id  : int
$owner_id  : int
$owner_type  : string
$user_id  : int
$user_type  : string
$fillable  : array<string|int, string>
$table  : mixed

Methods

entityId()  : int
entityType()  : string
getOwnerAttribute()  : mixed
getOwnerEntityAttribute()  : mixed
getUserAttribute()  : mixed
getUserEntityAttribute()  : mixed
isOwner()  : bool
check if $user is the owner of entity.
isUser()  : bool
check if $user is the user (creator) of entity.
moduleName()  : string
owner()  : MorphTo
ownerEntity()  : BelongsTo
ownerId()  : int
ownerType()  : string
user()  : MorphTo
userEntity()  : BelongsTo
userId()  : int
userType()  : string
newFactory()  : UserBlockedFactory

Constants

ENTITY_TYPE

public mixed ENTITY_TYPE = 'user_blocked'

Properties

$fillable

protected array<string|int, string> $fillable = ['user_id', 'user_type', 'owner_id', 'owner_type']

Methods

entityId()

public entityId() : int
Return values
int

entityType()

public entityType() : string
Return values
string

getOwnerEntityAttribute()

public getOwnerEntityAttribute() : mixed

getUserEntityAttribute()

public getUserEntityAttribute() : mixed

isOwner()

check if $user is the owner of entity.

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

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

ownerEntity()

public ownerEntity() : BelongsTo
Return values
BelongsTo

ownerType()

public ownerType() : string
Return values
string

userEntity()

public userEntity() : BelongsTo
Return values
BelongsTo

userType()

public userType() : string
Return values
string

newFactory()

protected static newFactory() : UserBlockedFactory
Return values
UserBlockedFactory

        
On this page

Search results