NEW_CPM/app/Interfaces/ModelInterface.php
2025-04-02 17:49:09 +05:45

15 lines
404 B
PHP

<?php
namespace App\Interfaces;
interface ModelInterface
{
public function findAll($request, ?callable $query = null, bool $paginate = false, int $limit = 10);
public function findById($id, ?callable $query = null);
public function delete($id);
public function create(array $data);
public function update($id, array $newData);
public function pluck(?callable $query = null);
}