| 1 | <?php |
||
| 12 | class UserRepository implements \Frameworkless\CrudInterface{ |
||
| 13 | |||
| 14 | public function find(array $conditions = []){ |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Поиск по id |
||
| 20 | * @param type $id |
||
| 21 | * @return \Models\User\User $User |
||
| 22 | * @throws \InvalidArgumentException |
||
| 23 | */ |
||
| 24 | public function findById($id){ |
||
| 31 | |||
| 32 | public function findMany(array $conditions = [], $limit = false){ |
||
| 40 | |||
| 41 | public function delete(ActiveRecordInterface $Model){ |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Сохраняем |
||
| 47 | * @param ActiveRecordInterface $Model |
||
| 48 | * @return boolean |
||
| 49 | * @throws \DomainException |
||
| 50 | */ |
||
| 51 | public function save(ActiveRecordInterface $Model){ |
||
| 54 | |||
| 55 | /** |
||
| 56 | * |
||
| 57 | * @return \Core\Models\User\User $User |
||
| 58 | */ |
||
| 59 | public function build(){ |
||
| 62 | } |
||
| 63 |