Update source into github
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
namespace App\Repositories\Note;
|
||||
|
||||
use App\Repositories\BaseCachedRepository;
|
||||
|
||||
class NoteCachedRepository extends BaseCachedRepository implements NoteRepositoryInterface
|
||||
{
|
||||
public function __construct(
|
||||
public NoteRepository $noteRepository
|
||||
)
|
||||
{
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
public function getModel()
|
||||
{
|
||||
return $this->noteRepository->getModel();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace App\Repositories\Note;
|
||||
|
||||
use App\Models\Note;
|
||||
use App\Repositories\BaseRepository;
|
||||
|
||||
class NoteRepository extends BaseRepository implements NoteRepositoryInterface
|
||||
{
|
||||
public function getModel()
|
||||
{
|
||||
return Note::class;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
namespace App\Repositories\Note;
|
||||
|
||||
use App\Repositories\BaseRepositoryInterface;
|
||||
|
||||
interface NoteRepositoryInterface extends BaseRepositoryInterface{}
|
||||
Reference in New Issue
Block a user