Skip to content

AbstractRole


  • Full name: \PhalconKit\Identity\Traits\Abstracts\AbstractRole

Methods

hasRole

public hasRole(?array $roles = null, bool $or = false, bool $inherit = true): bool
  • This method is abstract. Parameters:
Parameter Type Description
$roles ?array
$or bool
$inherit bool

has

public has(array|string|null $needles = null, array $haystack = [], bool $or = false): bool
  • This method is abstract. Parameters:
Parameter Type Description
$needles array|string|null
$haystack array
$or bool

getInheritedRoleList

public getInheritedRoleList(array $roleIndexList = []): array
  • This method is abstract. Parameters:
Parameter Type Description
$roleIndexList array