Skip to content

Commit

Permalink
Add generics to ClassMetadata
Browse files Browse the repository at this point in the history
  • Loading branch information
franmomu committed Feb 14, 2021
1 parent 5d35392 commit 40f5e50
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/Doctrine/Persistence/Mapping/ClassMetadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

/**
* Contract for a Doctrine persistence layer ClassMetadata class to implement.
*
* @template T of object
*/
interface ClassMetadata
{
Expand All @@ -14,7 +16,7 @@ interface ClassMetadata
*
* @return string
*
* @psalm-return class-string
* @psalm-return class-string<T>
*/
public function getName();

Expand All @@ -30,7 +32,7 @@ public function getIdentifier();
/**
* Gets the ReflectionClass instance for this mapped class.
*
* @return ReflectionClass
* @return ReflectionClass<T>
*/
public function getReflectionClass();

Expand Down

0 comments on commit 40f5e50

Please sign in to comment.