Issues (39)

src/Metadata/MetadataFactoryInterface.php (1 issue)

1
<?php
2
3
namespace Bdf\Serializer\Metadata;
4
5
use Bdf\Serializer\Exception\UnexpectedValueException;
6
7
/**
8
 * Interface MetadataFactoryInterface
9
 */
10
interface MetadataFactoryInterface
11
{
12
    /**
13
     * Get the related metadata
14
     *
15
     * @param class-string<T>|T $className
0 ignored issues
show
Documentation Bug introduced by
The doc comment class-string<T>|T at position 0 could not be parsed: Unknown type name 'class-string' at position 0 in class-string<T>|T.
Loading history...
16
     *
17
     * @return ClassMetadata<T>
18
     * @template T as object
19
     *
20
     * @throws UnexpectedValueException  if the class name has no metadata
21
     */
22
    public function getMetadata($className): ClassMetadata;
23
}
24