Revert "Move the model property to the abstract repository"

This reverts commit 064cc099ec.
This commit is contained in:
Graham Campbell
2015-01-01 20:19:36 +00:00
parent 9d3f68bbf7
commit 365e41d55e
5 changed files with 28 additions and 7 deletions

View File

@@ -7,6 +7,13 @@ use Component;
class EloquentComponentRepository extends EloquentRepository implements ComponentRepository
{
/**
* The eloquent model instance.
*
* @var \Component
*/
protected $model;
/**
* Create a new eloquent component repository instance.
*

View File

@@ -7,13 +7,6 @@ use Illuminate\Database\Eloquent\ModelNotFoundException;
abstract class EloquentRepository
{
/**
* The eloquent model instance.
*
* @var \Illuminate\Database\Eloquent\Model
*/
protected $model;
/**
* Returns all models.
*

View File

@@ -7,6 +7,13 @@ use Incident;
class EloquentIncidentRepository extends EloquentRepository implements IncidentRepository
{
/**
* The eloquent model instance.
*
* @var \Incident
*/
protected $model;
/**
* Create a new eloquent incident repository instance.
*

View File

@@ -7,6 +7,13 @@ use Metric;
class EloquentMetricRepository extends EloquentRepository implements MetricRepository
{
/**
* The eloquent model instance.
*
* @var \Metric
*/
protected $model;
/**
* Create a new eloquent metric repository instance.
*

View File

@@ -7,6 +7,13 @@ use MetricPoint;
class EloquentMetricPointRepository extends EloquentRepository implements MetricPointRepository
{
/**
* The eloquent model instance.
*
* @var \MetricPoint
*/
protected $model;
/**
* Create a new eloquent metric point repository instance.
*