b2pweb /
bdf-serializer
| 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
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 |