primo upload
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
<?php
|
||||
|
||||
namespace Vanguard\Repositories\Permission;
|
||||
|
||||
interface PermissionRepository
|
||||
{
|
||||
/**
|
||||
* Get all system permissions.
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function all();
|
||||
|
||||
/**
|
||||
* Finds the permission by given id.
|
||||
*
|
||||
* @param $id
|
||||
* @return mixed
|
||||
*/
|
||||
public function find($id);
|
||||
|
||||
/**
|
||||
* Creates new permission from provided data.
|
||||
*
|
||||
* @param array $data
|
||||
* @return mixed
|
||||
*/
|
||||
public function create(array $data);
|
||||
|
||||
/**
|
||||
* Updates specified permission.
|
||||
*
|
||||
* @param $id
|
||||
* @param array $data
|
||||
* @return mixed
|
||||
*/
|
||||
public function update($id, array $data);
|
||||
|
||||
/**
|
||||
* Remove specified permission from repository.
|
||||
*
|
||||
* @param $id
|
||||
* @return mixed
|
||||
*/
|
||||
public function delete($id);
|
||||
}
|
||||
Reference in New Issue
Block a user