Created
August 31, 2017 14:26
-
-
Save DDiimmkkaass/184ef28c7091bdd1a7cbb4902b0b094e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Created by Newway, info@newway.com.ua | |
* User: ddiimmkkaass, ddiimmkkaass@gmail.com | |
* Date: 09.02.17 | |
* Time: 14:05 | |
*/ | |
namespace App\Services\Aggregator\v1\Repositories; | |
use Illuminate\Database\Eloquent\Model; | |
/** | |
* Class AbstractRepository | |
* @package App\Repositories | |
*/ | |
abstract class AbstractRepository | |
{ | |
/** | |
* @var \Illuminate\Database\Eloquent\Model | |
*/ | |
protected $model; | |
/** | |
* AbstractRepository constructor. | |
* | |
* @param \Illuminate\Database\Eloquent\Model $model | |
*/ | |
public function __construct(Model $model) | |
{ | |
$this->model = $model; | |
} | |
/** | |
* @return \Illuminate\Database\Eloquent\Model | |
*/ | |
public function model() | |
{ | |
return $this->model; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment