spotonlive/sl-assertions

View on GitHub
src/SpotOnLive/Assertions/Services/AssertionServiceInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

/**
 * Assertions for Laravel 5.1
 *
 * @license MIT
 * @package SpotOnLive\EntrustDoctrineORM
 */

namespace SpotOnLive\Assertions\Services;

use SpotOnLive\Assertions\Exceptions\AssertionNotFoundException;

interface AssertionServiceInterface
{
    /**
     * Check if permission is granted
     *
     * @param string $name
     * @param $user
     * @param array $data
     * @return bool
     * @throws AssertionNotFoundException
     */
    public function isGranted($name, $user, array $data = []);
}