Jaspaul/laravel-rollout

View on GitHub
src/Contracts/Group.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Jaspaul\LaravelRollout\Contracts;

use Opensoft\Rollout\RolloutUserInterface;

interface Group
{
    /**
     * The name of the group.
     *
     * @return string
     */
    public function getName(): string;

    /**
     * Checks if the given user is a member of this group.
     *
     * @param mixed $user
     *
     * @return boolean
     */
    public function hasMember($user = null): bool;
}