mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 12:55:26 +01:00
31 lines
537 B
PHP
31 lines
537 B
PHP
<?php
|
|
|
|
namespace Doctrine\ORM;
|
|
|
|
class EntityManager implements EntityManagerInterface
|
|
{
|
|
/**
|
|
* @template T
|
|
* @param class-string<T> $entityName
|
|
* @param mixed $id
|
|
*
|
|
* @return null|T
|
|
*/
|
|
public function getReference($entityName, $id)
|
|
{
|
|
}
|
|
}
|
|
|
|
interface EntityManagerInterface
|
|
{
|
|
/**
|
|
* @param class-string<T> $entityName
|
|
* @param mixed $id
|
|
*
|
|
* @return T|null
|
|
*
|
|
* @template T
|
|
*/
|
|
public function getReference(string $entityName, $id);
|
|
}
|