Skip to content

Commit

Permalink
[Common] Create IModelRepository
Browse files Browse the repository at this point in the history
  • Loading branch information
onairmarc committed May 24, 2024
1 parent 80c4f47 commit 1a8b5c8
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/Common/src/Repositories/IModelRepository.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php
/*
* Copyright (c) 2024. Encore Digital Group.
* All Right Reserved.
*/

namespace PHPGenesis\Common\Repositories;

interface IModelRepository
{
public function create(array $attributes = []);

public function firstOrCreate(array $attributes = [], array $values = []);

public function all();

public function find(string|int $id, array $columns = ['*']);

public function get(array $columns = ['*']);

public function update(array $values);

public function updateOrCreate(array $attributes = [], array $values = []);

public function delete();
}

0 comments on commit 1a8b5c8

Please sign in to comment.