MetaFox

UserRelationHistory extends Model
in package
implements Entity, ActivityFeedSource Uses HasEntity, HasUserMorph, HasFeed

Class UserRelationHistory.

Table of Contents

Interfaces

Entity
Interface Entity.
ActivityFeedSource
Interface ActivityFeedSource.

Constants

ENTITY_TYPE  = 'user_relation_history'

Properties

$id  : int
$relation_id  : int
$timestamps  : mixed
$user_id  : int
$user_type  : string
$fillable  : array<string|int, string>
$table  : mixed

Methods

activity_feed()  : MorphOne|null
Morph Relation.
entityId()  : int
entityType()  : string
gender()  : BelongsTo
getActivityFeedAttribute()  : mixed
getUserAttribute()  : mixed
getUserEntityAttribute()  : mixed
isUser()  : bool
check if $user is the user (creator) of entity.
moduleName()  : string
owner()  : BelongsTo
relationship()  : HasOne
relationWithUser()  : BelongsTo
toActivityFeed()  : FeedAction|null
user()  : MorphTo
userEntity()  : BelongsTo
userId()  : int
userType()  : string
getRelationshipTextAttribute()  : string|null

Constants

Properties

$fillable

protected array<string|int, string> $fillable = ['user_id', 'user_type', 'relation_id', 'relation_with']

Methods

activity_feed()

Morph Relation.

public activity_feed() : MorphOne|null
Tags
SuppressWarnings

(PHPMD.CamelCaseMethodName)

Return values
MorphOne|null

entityId()

public entityId() : int
Return values
int

entityType()

public entityType() : string
Return values
string

getActivityFeedAttribute()

public getActivityFeedAttribute() : 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
bool

moduleName()

public moduleName() : string
Return values
string

userEntity()

public userEntity() : BelongsTo
Return values
BelongsTo

userType()

public userType() : string
Return values
string

getRelationshipTextAttribute()

protected getRelationshipTextAttribute() : string|null
Return values
string|null

        
On this page

Search results