Move the model property to the abstract repository

This commit is contained in:
Graham Campbell 2015-01-01 20:04:27 +00:00
parent 3f5566a5ed
commit 064cc099ec
5 changed files with 7 additions and 28 deletions

View File

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