Copied!
CloneableInstantiable
Methods
public __construct(string $typeProperty, array $mapping, ?string $defaultType = NULL)
 
  • 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])
  • param ?string $defaultType The fallback value if nothing specified by $typeProperty
  • throws \InvalidArgumentException
public getDefaultType() : ?string
public getMapping() : array
public getTypeProperty() : string
Properties
private readonly ?string $defaultType
private readonly array $mapping
private readonly string $typeProperty
© 2025 Bruce Wells
Search Namespaces \ Classes
Configuration