Update source into github
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace App\Repositories\Module\Snapshot;
|
||||
|
||||
use App\Repositories\BaseCachedRepository;
|
||||
|
||||
class SnapshotCachedRepository extends BaseCachedRepository implements SnapshotRepositoryInterface
|
||||
{
|
||||
public function __construct(
|
||||
public SnapshotRepository $snapshotRepository
|
||||
) {
|
||||
parent::__construct();
|
||||
}
|
||||
public function getModel()
|
||||
{
|
||||
return $this->snapshotRepository->getModel();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace App\Repositories\Module\Snapshot;
|
||||
|
||||
use App\Repositories\BaseCachedRepository;
|
||||
|
||||
class SnapshotLimitCachedRepository extends BaseCachedRepository implements SnapshotLimitRepositoryInterface
|
||||
{
|
||||
public function __construct(
|
||||
public SnapshotLimitRepository $snapshotLimitRepository
|
||||
) {
|
||||
parent::__construct();
|
||||
}
|
||||
public function getModel()
|
||||
{
|
||||
return $this->snapshotLimitRepository->getModel();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
namespace App\Repositories\Module\Snapshot;
|
||||
|
||||
use App\Models\ModuleSnapshotLimit;
|
||||
use App\Repositories\BaseRepository;
|
||||
|
||||
class SnapshotLimitRepository extends BaseRepository implements SnapshotLimitRepositoryInterface {
|
||||
public function getModel()
|
||||
{
|
||||
return ModuleSnapshotLimit::class;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
<?php
|
||||
namespace App\Repositories\Module\Snapshot;
|
||||
|
||||
use App\Repositories\BaseRepositoryInterface;
|
||||
|
||||
interface SnapshotLimitRepositoryInterface extends BaseRepositoryInterface {}
|
||||
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
namespace App\Repositories\Module\Snapshot;
|
||||
|
||||
use App\Models\ModuleSnapshot;
|
||||
use App\Repositories\BaseRepository;
|
||||
|
||||
class SnapshotRepository extends BaseRepository implements SnapshotRepositoryInterface
|
||||
{
|
||||
public function getModel()
|
||||
{
|
||||
return ModuleSnapshot::class;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
<?php
|
||||
namespace App\Repositories\Module\Snapshot;
|
||||
|
||||
use App\Repositories\BaseRepositoryInterface;
|
||||
|
||||
interface SnapshotRepositoryInterface extends BaseRepositoryInterface{}
|
||||
Reference in New Issue
Block a user