| 1 | <?php |
||
| 8 | abstract class BaseEloquentRepository |
||
| 9 | { |
||
| 10 | /** @var Model */ |
||
| 11 | protected static $instance; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * BaseEloquentRepository constructor. |
||
| 15 | * |
||
| 16 | * @param Model $instance |
||
| 17 | */ |
||
| 18 | protected function __construct(Model $instance) |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param Model $instance |
||
| 25 | * |
||
| 26 | * @return static |
||
| 27 | */ |
||
| 28 | public static function create(Model $instance) |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param $value |
||
| 35 | * |
||
| 36 | * @throws \Exception |
||
| 37 | */ |
||
| 38 | protected function guard($value) |
||
| 42 | } |
||
| 43 |