AsgardCms/User

View on GitHub
Entities/UserInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php namespace Modules\User\Entities;

interface UserInterface
{
    /**
     * Checks if a user belongs to the given Role ID
     * @param  int $roleId
     * @return bool
     */
    public function hasRoleId($roleId);

    /**
     * Checks if a user belongs to the given Role Name
     * @param  string $name
     * @return bool
     */
    public function hasRoleName($name);

    /**
     * Check if the current user is activated
     * @return bool
     */
    public function isActivated();
}