1 | <?php |
||
15 | class Repository implements RepositoryInterface |
||
16 | { |
||
17 | protected $app; |
||
18 | |||
19 | protected $model; |
||
20 | |||
21 | protected $class; |
||
22 | |||
23 | protected $with = []; |
||
24 | |||
25 | public function __construct(Application $app) |
||
29 | |||
30 | public function getModel() |
||
34 | |||
35 | public function setModel(Model $model) |
||
42 | |||
43 | /** |
||
44 | * @return string[] |
||
45 | */ |
||
46 | public function getWith() |
||
50 | |||
51 | public function with($relations) |
||
57 | |||
58 | public function getClass() |
||
62 | |||
63 | public function setClass($class) |
||
76 | |||
77 | /** |
||
78 | * {@inheritdoc} |
||
79 | */ |
||
80 | public function getQuery() |
||
86 | |||
87 | /** |
||
88 | * {@inheritdoc} |
||
89 | */ |
||
90 | public function findOnlyTrashed($id) |
||
94 | |||
95 | public function store() |
||
98 | |||
99 | public function update() |
||
102 | |||
103 | |||
104 | public function forceDelete($id) |
||
108 | |||
109 | public function restore($id) |
||
113 | |||
114 | |||
115 | public function isRestorable() |
||
119 | } |
||
120 |