-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b69022b
commit 312f277
Showing
2 changed files
with
52 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
namespace albertborsos\ddd\interfaces; | ||
|
||
use yii\db\ActiveRecordInterface; | ||
|
||
interface RepositoryInterface | ||
{ | ||
public static function find(); | ||
|
||
public static function findOne($condition); | ||
|
||
public static function findAll($condition); | ||
|
||
public static function updateAll($attributes, $condition = null); | ||
|
||
public static function deleteAll($condition = null); | ||
|
||
public function save(ActiveRecordInterface $model, $runValidation = true, $attributeNames = null); | ||
|
||
public function insert(ActiveRecordInterface $model, $runValidation = true, $attributeNames = null); | ||
|
||
public function update(ActiveRecordInterface $model, $runValidation = true, $attributeNames = null); | ||
|
||
public function delete(ActiveRecordInterface $model); | ||
} |
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