StickerRecent
        
        extends Model
    
    
            
            in package
            
        
    
            
            implements
                            Entity                    
    
            
            Uses
                            HasEntity,                             HasFactory,                             HasUserMorph                    
    
Class StickerRecent.
Tags
Table of Contents
Interfaces
- Entity
 - Interface Entity.
 
Constants
- ENTITY_TYPE = 'sticker_recent'
 - MAXIMUM_RECENT_STICKER = 50
 
Properties
- $created_at : string
 - $id : int
 - $sticker_id : int
 - $updated_at : string
 - $user_id : int
 - $user_type : string
 - $fillable : array<string|int, string>
 - $table : mixed
 
Methods
- entityId() : int
 - entityType() : string
 - factory() : StickerRecentFactory
 - 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() : StickerRecentFactory
 
Constants
ENTITY_TYPE
    public
        mixed
    ENTITY_TYPE
    = 'sticker_recent'
    
    
    
MAXIMUM_RECENT_STICKER
    public
        mixed
    MAXIMUM_RECENT_STICKER
    = 50
    
    
    
Properties
$created_at
    public
        string
    $created_at
    
    
    
    
$id
    public
        int
    $id
    
    
    
    
$sticker_id
    public
        int
    $sticker_id
    
    
    
    
$updated_at
    public
        string
    $updated_at
    
    
    
    
$user_id
    public
        int
    $user_id
    
    
    
    
$user_type
    public
        string
    $user_type
    
    
    
    
$fillable
    protected
        array<string|int, string>
    $fillable
     = ['sticker_id', 'user_id', 'user_type']
    
    
    
$table
    protected
        mixed
    $table
     = 'sticker_recent'
    
    
    
Methods
entityId()
    public
                    entityId() : int
    Return values
intentityType()
    public
                    entityType() : string
    Return values
stringfactory()
    public
            static        factory(mixed $parameters) : StickerRecentFactory
    Parameters
- $parameters : mixed
 
Return values
StickerRecentFactorygetUserAttribute()
    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() : StickerRecentFactory