UserValue
extends Model
in package
implements
Entity
Uses
HasEntity, HasFactory, HasUserMorph
Class UserValue.
Table of Contents
Interfaces
- Entity
- Interface Entity.
Constants
- ENTITY_TYPE = 'user_value'
Properties
- $default_value : int
- $id : int
- $name : string
- $ordering : int
- $timestamps : mixed
- $value : int
- $fillable : array<string|int, string>
- $table : mixed
Methods
- entityId() : int
- entityType() : string
- factory() : UserValueFactory
- 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() : UserValueFactory
Constants
ENTITY_TYPE
public
mixed
ENTITY_TYPE
= 'user_value'
Properties
$default_value
public
int
$default_value
$id
public
int
$id
$name
public
string
$name
$ordering
public
int
$ordering
$timestamps
public
mixed
$timestamps
= false
$value
public
int
$value
$fillable
protected
array<string|int, string>
$fillable
= ['user_id', 'user_type', 'name', 'value', 'default_value', 'ordering']
$table
protected
mixed
$table
= 'user_values'
Methods
entityId()
public
entityId() : int
Return values
intentityType()
public
entityType() : string
Return values
stringfactory()
public
static factory(mixed $parameters) : UserValueFactory
Parameters
- $parameters : mixed
Return values
UserValueFactorygetUserAttribute()
public
getUserAttribute() : mixed
getUserEntityAttribute()
public
getUserEntityAttribute() : mixed
isUser()
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
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() : UserValueFactory