-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
5098f37
commit 4fc33a0
Showing
3 changed files
with
12 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,14 +15,15 @@ | |
|
||
/** | ||
* @author Thomas Rabaix <[email protected]> | ||
* | ||
* @phpstan-template T of object | ||
*/ | ||
interface AuditReaderInterface | ||
{ | ||
/** | ||
* @param int|string $id | ||
* @param int|string $revisionId | ||
* | ||
* @phpstan-template T of object | ||
* @phpstan-param class-string<T> $className | ||
* @phpstan-return T|null | ||
*/ | ||
|
@@ -31,14 +32,14 @@ public function find(string $className, $id, $revisionId): ?object; | |
/** | ||
* @return Revision[] | ||
* | ||
* @phpstan-param class-string $className | ||
* @phpstan-param class-string<T> $className | ||
*/ | ||
public function findRevisionHistory(string $className, int $limit = 20, int $offset = 0): array; | ||
|
||
/** | ||
* @param int|string $revisionId | ||
* | ||
* @phpstan-param class-string $className | ||
* @phpstan-param class-string<T> $className | ||
*/ | ||
public function findRevision(string $className, $revisionId): ?Revision; | ||
|
||
|
@@ -47,7 +48,7 @@ public function findRevision(string $className, $revisionId): ?Revision; | |
* | ||
* @return Revision[] | ||
* | ||
* @phpstan-param class-string $className | ||
* @phpstan-param class-string<T> $className | ||
*/ | ||
public function findRevisions(string $className, $id): array; | ||
|
||
|
@@ -58,7 +59,7 @@ public function findRevisions(string $className, $id): array; | |
* | ||
* @return array<string, array{old: mixed, new: mixed, same: mixed}> | ||
* | ||
* @phpstan-param class-string $className | ||
* @phpstan-param class-string<T> $className | ||
*/ | ||
public function diff(string $className, $id, $oldRevisionId, $newRevisionId): 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