-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRepository.php
More file actions
24 lines (22 loc) · 795 Bytes
/
Repository.php
File metadata and controls
24 lines (22 loc) · 795 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php namespace Devtools;
interface Repository
{
public function all();
public function findBy($filter);
public function findOrFail($filter);
public function where(Array $clause);
public function whereRaw($clause, Array $params);
public function first();
public function take($numberToReturn);
public function get();
public function count();
/* public function on($connectionName); */
public function save();
public function __get($property);
public function create(Array $userValues);
public function update(Array $values);
public function delete();
/* public function getAllBy(Array $filter); */
/* public function getBy(Array $filter, $fields); */
/* public function persist(\Bot\Entity\EntityInterface $entity); */
}