\Charcoal\FactoryGenericResolver

Converts the given **type** into a **class name**.

Summary

Methods
Properties
Constants
__construct()
__invoke()
resolve()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$prefix
$suffix
$capitals
$replacements
N/A

Properties

$prefix

$prefix : string

Type

string

$suffix

$suffix : string

Type

string

$capitals

$capitals : array

Type

array

$replacements

$replacements : array

Type

array

Methods

__construct()

__construct(array  $data = null) 

Parameters

array $data

Optional class dependencies. Will use default values if none are provided.

__invoke()

__invoke(string  $type) : string

Resolver needs to be callable

Parameters

string $type

The "type" of object to resolve (the object ident).

Returns

string —

The resolved class name (FQN).

resolve()

resolve(string  $type) : string

Resolve the class name from the requested type.

Parameters

string $type

The "type" of object to resolve (the object ident).

Throws

\InvalidArgumentException

If the type parameter is not a string.

Returns

string —

The resolved class name (FQN).