-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
more changes to support multi-user sync
- Loading branch information
1 parent
3caa5dc
commit 624ebb1
Showing
11 changed files
with
349 additions
and
52 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace App\Libs\Mappers; | ||
|
||
use App\Libs\Database\DatabaseInterface as iDB; | ||
use Psr\Log\LoggerInterface as iLogger; | ||
use Psr\SimpleCache\CacheInterface as iCache; | ||
|
||
interface ExtendedImportInterface extends ImportInterface | ||
{ | ||
/** | ||
* Set the database connection. and return the instance | ||
* | ||
* @param iDB $db Database connection | ||
* @return self Instance of the class | ||
*/ | ||
public function withDB(iDB $db): self; | ||
|
||
/** | ||
* Set the cache connection. and return the instance | ||
* | ||
* @param iCache $cache Cache connection | ||
* @return self Instance of the class | ||
*/ | ||
public function withCache(iCache $cache): self; | ||
|
||
/** | ||
* Set the logger connection. and return the instance | ||
* | ||
* @param iLogger $logger Logger connection | ||
* @return self Instance of the class | ||
*/ | ||
public function withLogger(iLogger $logger): self; | ||
|
||
/** | ||
* Compute the play state for each backend. | ||
* | ||
* @param array $backends List of backends to check. | ||
* | ||
* @return array List of changes for each backend. | ||
*/ | ||
public function computeChanges(array $backends): array; | ||
} |
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
Oops, something went wrong.