Copied!
CloneableInstantiable
Methods
public __construct(string $typeProperty, array $mapping)
 
  • param string $typeProperty The property holding the type discriminator
  • param array<string,class-string> $mapping The mapping between types and classes (i.e. ['admin_user' => AdminUser::class])
  • throws \InvalidArgumentException
public getMapping() : array
public getTypeProperty() : string
Properties
private readonly array $mapping
private readonly string $typeProperty
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration