ReportReasonPolicy
    
            
            in package
            
        
    
    
            
            Uses
                            HasPolicyTrait                    
    
Table of Contents
Properties
- $type : string
 
Methods
- __call() : bool
 - create() : bool
 - Determine whether the user can create models.
 - delete() : bool
 - Determine whether the user can delete the model.
 - update() : bool
 - Determine whether the user can update the model.
 - view() : bool
 - Determine whether the user can view the model.
 - viewAny() : bool
 - Determine whether the user can view any models.
 - viewOnProfilePage() : bool
 
Properties
$type
    protected
        string
    $type
     = \MetaFox\Report\Models\ReportReason::ENTITY_TYPE
    
    
    
Methods
__call()
    public
                    __call(string $ability, array<string|int, mixed> $arguments) : bool
    Parameters
- $ability : string
 - $arguments : array<string|int, mixed>
 
Return values
boolcreate()
Determine whether the user can create models.
    public
                    create(User $user) : bool
    Parameters
- $user : User
 
Return values
booldelete()
Determine whether the user can delete the model.
    public
                    delete(User $user) : bool
    Parameters
- $user : User
 
Return values
boolupdate()
Determine whether the user can update the model.
    public
                    update(User $user) : bool
    Parameters
- $user : User
 
Return values
boolview()
Determine whether the user can view the model.
    public
                    view(User $user) : bool
    Parameters
- $user : User
 
Return values
boolviewAny()
Determine whether the user can view any models.
    public
                    viewAny(User $user) : bool
    Parameters
- $user : User
 
Return values
boolviewOnProfilePage()
    public
                    viewOnProfilePage(User $user, User $owner) : bool