PackagePolicy
in package
Uses
HasPolicyTrait
Point Package Policy.
Tags
Table of Contents
Methods
- __call() : bool
- create() : bool
- delete() : bool
- deleteOwn() : bool
- moderate() : bool
- purchase() : bool
- update() : bool
- view() : bool
- viewAny() : bool
- viewOnProfilePage() : bool
- viewOwner() : bool
Methods
__call()
public
__call(string $ability, array<string|int, mixed> $arguments) : bool
Parameters
- $ability : string
- $arguments : array<string|int, mixed>
Return values
boolcreate()
public
create(User $user[, User|null $owner = null ]) : bool
Parameters
Return values
booldelete()
public
delete(User $user[, PointPackage|null $resource = null ]) : bool
Parameters
- $user : User
- $resource : PointPackage|null = null
Return values
booldeleteOwn()
public
deleteOwn(User $user[, PointPackage|null $resource = null ]) : bool
Parameters
- $user : User
- $resource : PointPackage|null = null
Return values
boolmoderate()
public
moderate(User $user) : bool
Parameters
- $user : User
Return values
boolpurchase()
public
purchase(User $user, PointPackage $resource) : bool
Parameters
- $user : User
- $resource : PointPackage
Return values
boolupdate()
public
update(User $user[, PointPackage|null $resource = null ]) : bool
Parameters
- $user : User
- $resource : PointPackage|null = null
Return values
boolview()
public
view(User $user, PointPackage $resource) : bool
Parameters
- $user : User
- $resource : PointPackage
Return values
boolviewAny()
public
viewAny(User $user[, User|null $owner = null ]) : bool
Parameters
Return values
boolviewOnProfilePage()
public
viewOnProfilePage(User $user, User $owner) : bool
Parameters
Return values
boolviewOwner()
public
viewOwner(User $user[, User|null $owner = null ]) : bool