1 | <?php namespace jlourenco\comments\Repositories; |
||
5 | class CommentRepository implements CommentRepositoryInterface |
||
6 | { |
||
7 | use RepositoryTrait; |
||
8 | |||
9 | /** |
||
10 | * The comment model name. |
||
11 | * |
||
12 | * @var string |
||
13 | */ |
||
14 | protected $model = 'jlourenco\comments\Models\Comment'; |
||
15 | |||
16 | /** |
||
17 | * Create a new comment repository. |
||
18 | * |
||
19 | * @param string $model |
||
20 | */ |
||
21 | public function __construct($model = null) |
||
26 | |||
27 | /** |
||
28 | * {@inheritDoc} |
||
29 | */ |
||
30 | public function findById($id) |
||
37 | |||
38 | } |
||
39 |