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