CommentHistory
        
        extends Model
    
    
            
            in package
            
        
    
            
            implements
                            HasItemMorph,                             Entity                    
    
            
            Uses
                            HasEntity,                             HasUserMorph,                             HasItemMorph                    
    
Class CommentHistory.
Table of Contents
Interfaces
- HasItemMorph
 - Entity
 - Interface Entity.
 
Constants
- ENTITY_TYPE = 'comment_histories'
 - PHRASE_COLUMNS_ADDED = 'comment_add_photo'
 - PHRASE_COLUMNS_DELETED = 'comment_delete_photo'
 - PHRASE_COLUMNS_UPDATED = 'comment_update_photo'
 - PHRASE_STICKER_ADDED = 'comment_add_sticker'
 - PHRASE_STICKER_DELETED = 'comment_delete_sticker'
 - PHRASE_STICKER_UPDATED = 'comment_update_sticker'
 
Properties
- $content : string
 - $created_at : string
 - $description : string
 - $id : int
 - $image_path : string|null
 - $params : string
 - $phrase : string
 - $server_id : string
 - $text_parsed : string
 - $updated_at : string
 - $casts : array<string, mixed>
 - $fillable : array<string|int, string>
 - $table : mixed
 
Methods
- entityId() : int
 - entityType() : string
 - getDescriptionAttribute() : string|null
 - getItemAttribute() : mixed
 - getTextParsedAttribute() : string
 - 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
 - booted() : mixed
 
Constants
ENTITY_TYPE
    public
        mixed
    ENTITY_TYPE
    = 'comment_histories'
    
    
    
PHRASE_COLUMNS_ADDED
    public
        mixed
    PHRASE_COLUMNS_ADDED
    = 'comment_add_photo'
    
    
    
PHRASE_COLUMNS_DELETED
    public
        mixed
    PHRASE_COLUMNS_DELETED
    = 'comment_delete_photo'
    
    
    
PHRASE_COLUMNS_UPDATED
    public
        mixed
    PHRASE_COLUMNS_UPDATED
    = 'comment_update_photo'
    
    
    
PHRASE_STICKER_ADDED
    public
        mixed
    PHRASE_STICKER_ADDED
    = 'comment_add_sticker'
    
    
    
PHRASE_STICKER_DELETED
    public
        mixed
    PHRASE_STICKER_DELETED
    = 'comment_delete_sticker'
    
    
    
PHRASE_STICKER_UPDATED
    public
        mixed
    PHRASE_STICKER_UPDATED
    = 'comment_update_sticker'
    
    
    
Properties
$content
    public
        string
    $content
    
    
    
    
$created_at
    public
        string
    $created_at
    
    
    
    
$description
    public
        string
    $description
    
    
    
    
$id
    public
        int
    $id
    
    
    
    
$image_path
    public
        string|null
    $image_path
    
    
    
    
$params
    public
        string
    $params
    
    
    
    
$phrase
    public
        string
    $phrase
    
    
    
    
$server_id
    public
        string
    $server_id
    
    
    
    
$text_parsed
    public
        string
    $text_parsed
    
    
    
    
$updated_at
    public
        string
    $updated_at
    
    
    
    
$casts
    protected
        array<string, mixed>
    $casts
     = ['tagged_user_ids' => 'array']
    
    
    
$fillable
    protected
        array<string|int, string>
    $fillable
     = ['comment_id', 'user_id', 'user_type', 'item_id', 'item_type', 'content', 'params', 'phrase', 'tagged_user_ids', 'created_at']
    
    
    
$table
    protected
        mixed
    $table
     = 'comment_histories'
    
    
    
Methods
entityId()
    public
                    entityId() : int
    Return values
intentityType()
    public
                    entityType() : string
    Return values
stringgetDescriptionAttribute()
    public
                    getDescriptionAttribute() : string|null
    Return values
string|nullgetItemAttribute()
    public
                    getItemAttribute() : mixed
    getTextParsedAttribute()
    public
                    getTextParsedAttribute() : string
    Return values
stringgetUserAttribute()
    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
stringbooted()
    protected
            static        booted() : mixed