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
$id
public
int
$id
$owner_id
public
int
$owner_id
$owner_type
public
string
$owner_type
$user_id
public
int
$user_id
$user_type
public
string
$user_type
$fillable
protected
array<string|int, string>
$fillable
= ['user_id', 'user_type', 'owner_id', 'owner_type']
$table
protected
mixed
$table
= 'user_blocked'
Methods
entityId()
public
entityId() : int
Return values
intentityType()
public
entityType() : string
Return values
stringgetOwnerAttribute()
public
getOwnerAttribute() : mixed
getOwnerEntityAttribute()
public
getOwnerEntityAttribute() : mixed
getUserAttribute()
public
getUserAttribute() : mixed
getUserEntityAttribute()
public
getUserEntityAttribute() : mixed
isOwner()
check if $user is the owner of entity.
public
isOwner(User $user) : bool
Parameters
- $user : User
Return values
boolisUser()
check if $user is the user (creator) of entity.
public
isUser(User $user) : bool
Parameters
- $user : User
Return values
boolmoduleName()
public
moduleName() : string
Return values
stringowner()
public
owner() : MorphTo
Return values
MorphToownerEntity()
public
ownerEntity() : BelongsTo
Return values
BelongsToownerId()
public
ownerId() : int
Return values
intownerType()
public
ownerType() : string
Return values
stringuser()
public
user() : MorphTo
Return values
MorphTouserEntity()
public
userEntity() : BelongsTo
Return values
BelongsTouserId()
public
userId() : int
Return values
intuserType()
public
userType() : string
Return values
stringnewFactory()
protected
static newFactory() : UserBlockedFactory