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 | |||
54 | public function isRestorable() |
||
58 | |||
59 | /** |
||
60 | * Handle dynamic method calls into the model. |
||
61 | * |
||
62 | * @param string $method |
||
63 | * @param array $parameters |
||
64 | * |
||
65 | * @return mixed |
||
66 | */ |
||
67 | public function __call($method, $parameters) |
||
71 | |||
72 | /** |
||
73 | * Handle dynamic static method calls into the method. |
||
74 | * |
||
75 | * @param string $method |
||
76 | * @param array $parameters |
||
77 | * |
||
78 | * @return mixed |
||
79 | */ |
||
80 | public static function __callStatic($method, $parameters) |
||
84 | } |
||
85 |