StatusBackground
        
        extends Model
    
    
            
            in package
            
        
    
    
            
            Uses
                            HasEntity,                             HasFactory,                             HasUserMorph,                             HasItemMorph                    
    
Class StatusBackground.
Table of Contents
Constants
- ENTITY_TYPE = 'bgs_status_background'
 
Properties
- $background_id : int
 - $id : int
 - $is_active : int
 - $item_id : int
 - $item_type : string
 - $timestamps : mixed
 - $user_id : int
 - $user_type : string
 - $fillable : array<string|int, string>
 - $table : mixed
 
Methods
- background() : BelongsTo
 - entityId() : int
 - entityType() : string
 - factory() : StatusBackgroundFactory
 - getItemAttribute() : mixed
 - getUserAttribute() : mixed
 - getUserEntityAttribute() : mixed
 - isUser() : bool
 - check if $user is the user (creator) of entity.
 - item() : MorphTo|null
 - itemId() : int
 - itemType() : string
 - moduleName() : string
 - user() : MorphTo
 - userEntity() : BelongsTo
 - userId() : int
 - userType() : string
 - newFactory() : StatusBackgroundFactory
 
Constants
ENTITY_TYPE
    public
        mixed
    ENTITY_TYPE
    = 'bgs_status_background'
    
    
    
Properties
$background_id
    public
        int
    $background_id
    
    
    
    
$id
    public
        int
    $id
    
    
    
    
$is_active
    public
        int
    $is_active
    
    
    
    
$item_id
    public
        int
    $item_id
    
    
    
    
$item_type
    public
        string
    $item_type
    
    
    
    
$timestamps
    public
        mixed
    $timestamps
     = false
    
    
    
$user_id
    public
        int
    $user_id
    
    
    
    
$user_type
    public
        string
    $user_type
    
    
    
    
$fillable
    protected
        array<string|int, string>
    $fillable
     = ['item_id', 'item_type', 'user_id', 'user_type', 'background_id', 'is_active']
    
    
    
$table
    protected
        mixed
    $table
     = 'bgs_status_background'
    
    
    
Methods
background()
    public
                    background() : BelongsTo
    Return values
BelongsToentityId()
    public
                    entityId() : int
    Return values
intentityType()
    public
                    entityType() : string
    Return values
stringfactory()
    public
            static        factory(mixed $parameters) : StatusBackgroundFactory
    Parameters
- $parameters : mixed
 
Return values
StatusBackgroundFactorygetItemAttribute()
    public
                    getItemAttribute() : mixed
    getUserAttribute()
    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
boolitem()
    public
                    item() : MorphTo|null
    Return values
MorphTo|nullitemId()
    public
                    itemId() : int
    Return values
intitemType()
    public
                    itemType() : string
    Return values
stringmoduleName()
    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() : StatusBackgroundFactory