artesaos/defender

View on GitHub
src/Defender/Contracts/Repositories/RoleRepository.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Artesaos\Defender\Contracts\Repositories;

/**
 * Interface RoleRepository.
 */
interface RoleRepository extends AbstractRepository
{
    /**
     * Create a new role with the given name.
     *
     * @param string $roleName
     *
     * @throws \Exception
     *
     * @return \Artesaos\Defender\Role
     */
    public function create($roleName);
}