reorganize and cleanup php server code

This commit is contained in:
2026-02-06 13:12:38 +01:00
parent bf2f18f847
commit a6785f26db
3103 changed files with 494 additions and 351462 deletions
@@ -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);
}