1 | <?php |
||
15 | class Repository implements RepositoryContract |
||
16 | { |
||
17 | protected $model; |
||
18 | |||
19 | protected $class; |
||
20 | |||
21 | public function getModel() |
||
25 | |||
26 | public function setModel(Model $model) |
||
30 | |||
31 | public function getClass() |
||
35 | |||
36 | public function setClass($class) |
||
47 | |||
48 | public function forceDelete($id) |
||
52 | |||
53 | public function restore($id) |
||
57 | |||
58 | |||
59 | public function isRestorable() |
||
63 | |||
64 | /** |
||
65 | * Handle dynamic method calls into the model. |
||
66 | * |
||
67 | * @param string $method |
||
68 | * @param array $parameters |
||
69 | * |
||
70 | * @return mixed |
||
71 | */ |
||
72 | public function __call($method, $parameters) |
||
76 | |||
77 | /** |
||
78 | * Handle dynamic static method calls into the method. |
||
79 | * |
||
80 | * @param string $method |
||
81 | * @param array $parameters |
||
82 | * |
||
83 | * @return mixed |
||
84 | */ |
||
85 | public static function __callStatic($method, $parameters) |
||
89 | } |
||
90 |