This commit is contained in:
9 files changed
+68
-31
No files matched your search
@@ -0,0 +1,20 @@
|
||||
<?php namespace SokoWeb\Interfaces\PersistentData;
|
||||
|
||||
use Generator;
|
||||
use SokoWeb\Database\Query\Select;
|
||||
use SokoWeb\PersistentData\Model\Model;
|
||||
|
||||
interface IPersistentDataManager
|
||||
{
|
||||
public function selectFromDb(Select $select, string $type, bool $useRelations = false, array $withRelations = []);
|
||||
|
||||
public function selectMultipleFromDb(Select $select, string $type, bool $useRelations = false, array $withRelations = []): Generator;
|
||||
|
||||
public function selectFromDbById($id, string $type, bool $useRelations = false);
|
||||
|
||||
public function loadRelationsFromDb(Model $model, bool $recursive): void;
|
||||
|
||||
public function saveToDb(Model $model): void;
|
||||
|
||||
public function deleteFromDb(Model $model): void;
|
||||
}
|
||||
Reference in new issue
Block a user