Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implement partial patching method, closes #2
- Loading branch information
1 parent
ee317be
commit b0a0a45
Showing
3 changed files
with
150 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
/** | ||
* @author SignpostMarv | ||
*/ | ||
declare(strict_types=1); | ||
|
||
namespace SignpostMarv\DaftTypedObject; | ||
|
||
/** | ||
* @template T1 as DaftTypedObjectForRepository | ||
* @template T2 as array<string, scalar> | ||
* @template T3 as array<string, scalar|null> | ||
* | ||
* @template-extends DaftTypedObjectRepository<T1, T2> | ||
*/ | ||
interface PatchableObjectRepository extends DaftTypedObjectRepository | ||
{ | ||
/** | ||
* @param T2 $id | ||
* @param T3 $data | ||
*/ | ||
public function PatchTypedObjectData(array $id, array $data) : void; | ||
} |