1 | <?php |
||
15 | class UserRepository implements \Frameworkless\CrudInterface |
||
16 | { |
||
|
|||
17 | |||
18 | public function find(array $conditions = []) |
||
22 | |||
23 | /** |
||
24 | * Поиск по id |
||
25 | * @param type $id |
||
26 | * @return \Models\User\User $User |
||
27 | * @throws \InvalidArgumentException |
||
28 | */ |
||
29 | public function findById($id) |
||
37 | |||
38 | public function findMany(array $conditions = []) |
||
42 | |||
43 | public function delete(ActiveRecordInterface $Model) |
||
47 | |||
48 | /** |
||
49 | * Сохраняем |
||
50 | * @param ActiveRecordInterface $Model |
||
51 | * @return boolean |
||
52 | * @throws \DomainException |
||
53 | */ |
||
54 | public function save(ActiveRecordInterface $Model) |
||
68 | |||
69 | /** |
||
70 | * |
||
71 | * @return \Models\User\Models\User\User $User |
||
72 | */ |
||
73 | public function build(){ |
||
76 | |||
77 | } |
||
78 |