mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-01-18 05:58:18 +01:00
Move the model property to the abstract repository
This commit is contained in:
parent
3f5566a5ed
commit
064cc099ec
@ -7,13 +7,6 @@ use Component;
|
|||||||
|
|
||||||
class EloquentComponentRepository extends EloquentRepository implements ComponentRepository
|
class EloquentComponentRepository extends EloquentRepository implements ComponentRepository
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* The eloquent model instance.
|
|
||||||
*
|
|
||||||
* @var \Component
|
|
||||||
*/
|
|
||||||
protected $model;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new eloquent component repository instance.
|
* Create a new eloquent component repository instance.
|
||||||
*
|
*
|
||||||
|
@ -7,6 +7,13 @@ use Illuminate\Database\Eloquent\ModelNotFoundException;
|
|||||||
|
|
||||||
abstract class EloquentRepository
|
abstract class EloquentRepository
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* The eloquent model instance.
|
||||||
|
*
|
||||||
|
* @var \Illuminate\Database\Eloquent\Model
|
||||||
|
*/
|
||||||
|
protected $model;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns all models.
|
* Returns all models.
|
||||||
*
|
*
|
||||||
|
@ -7,13 +7,6 @@ use Incident;
|
|||||||
|
|
||||||
class EloquentIncidentRepository extends EloquentRepository implements IncidentRepository
|
class EloquentIncidentRepository extends EloquentRepository implements IncidentRepository
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* The eloquent model instance.
|
|
||||||
*
|
|
||||||
* @var \Incident
|
|
||||||
*/
|
|
||||||
protected $model;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new eloquent incident repository instance.
|
* Create a new eloquent incident repository instance.
|
||||||
*
|
*
|
||||||
|
@ -7,13 +7,6 @@ use Metric;
|
|||||||
|
|
||||||
class EloquentMetricRepository extends EloquentRepository implements MetricRepository
|
class EloquentMetricRepository extends EloquentRepository implements MetricRepository
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* The eloquent model instance.
|
|
||||||
*
|
|
||||||
* @var \Metric
|
|
||||||
*/
|
|
||||||
protected $model;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new eloquent metric repository instance.
|
* Create a new eloquent metric repository instance.
|
||||||
*
|
*
|
||||||
|
@ -7,13 +7,6 @@ use MetricPoint;
|
|||||||
|
|
||||||
class EloquentMetricPointRepository extends EloquentRepository implements MetricPointRepository
|
class EloquentMetricPointRepository extends EloquentRepository implements MetricPointRepository
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* The eloquent model instance.
|
|
||||||
*
|
|
||||||
* @var \MetricPoint
|
|
||||||
*/
|
|
||||||
protected $model;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new eloquent metric point repository instance.
|
* Create a new eloquent metric point repository instance.
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user