CancelFeedback
extends Model
in package
implements
Entity
Uses
HasEntity, HasFactory, HasUserMorph
Class CancelFeedback.
Table of Contents
Interfaces
- Entity
- Interface Entity.
Constants
- ENTITY_TYPE = 'user_cancel_feedback'
Properties
- $created_at : string
- $email : string
- $extra : array<string|int, mixed>
- $feedback_text : string
- $id : int
- $name : string
- $phone_number : string
- $reason : CancelReason
- $role : Role|null
- $updated_at : string
- $user_group_id : string
- $casts : mixed
- $fillable : array<string|int, string>
- $table : mixed
Methods
- entityId() : int
- entityType() : string
- factory() : CancelFeedbackFactory
- getUserAttribute() : mixed
- getUserEntityAttribute() : mixed
- isUser() : bool
- check if $user is the user (creator) of entity.
- moduleName() : string
- reason() : BelongsTo
- role() : BelongsTo
- user() : MorphTo
- userEntity() : BelongsTo
- userId() : int
- userType() : string
- newFactory() : CancelFeedbackFactory
Constants
ENTITY_TYPE
public
mixed
ENTITY_TYPE
= 'user_cancel_feedback'
Properties
$created_at
public
string
$created_at
public
string
$email
$extra
public
array<string|int, mixed>
$extra
$feedback_text
public
string
$feedback_text
$id
public
int
$id
$name
public
string
$name
$phone_number
public
string
$phone_number
$reason
public
CancelReason
$reason
$role
public
Role|null
$role
$updated_at
public
string
$updated_at
$user_group_id
public
string
$user_group_id
$casts
protected
mixed
$casts
= ['extra' => 'array']
$fillable
protected
array<string|int, string>
$fillable
= ['email', 'name', 'user_group_id', 'feedback_text', 'reason_id', 'reasons_given', 'user_id', 'user_type', 'phone_number', 'extra', 'created_at', 'updated_at']
$table
protected
mixed
$table
= 'user_delete_feedback'
Methods
entityId()
public
entityId() : int
Return values
intentityType()
public
entityType() : string
Return values
stringfactory()
public
factory(mixed $parameters) : CancelFeedbackFactory
Parameters
- $parameters : mixed
Return values
CancelFeedbackFactorygetUserAttribute()
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
stringreason()
public
reason() : BelongsTo
Return values
BelongsTorole()
public
role() : BelongsTo
Return values
BelongsTouser()
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() : CancelFeedbackFactory