mediatekformation

PrototypeClassFactory
in package

This is a factory for classes which are identified by name.

All classes that this factory can supply need to be registered before (prototypes). This prototypes need to implement an interface which ensures every prototype has a name.

If the factory can not supply the class someone is asking for it tries to fallback on a generic default prototype, which would have need to be set before.

Table of Contents

$genericPrototype  : PrototypeGenericInterface
$prototypes  : array<string|int, mixed>
__construct()  : mixed
addPrototype()  : mixed
getClonedPrototype()  : PrototypeInterface
hasPrototype()  : bool
setGenericPrototype()  : mixed
normalizeName()  : string

Properties

Methods

hasPrototype()

public hasPrototype(string $name) : bool
Parameters
$name : string
Return values
bool

normalizeName()

protected normalizeName(string $name) : string
Parameters
$name : string
Return values
string

Search results