class PrivateStaticTransformer implements TransformerInterface (View source)

Properties

protected array|callable $classes
protected int $sort

Methods

public
__construct(array|callable $classes)

No description

public
transform(MutableConfigCollectionInterface $collection)

This loops through each class and fetches the private static config for each class.

protected
mixed
getClassConfig(string $class)

This is responsible for introspecting a given class and returning an array continaing all of its private statics

protected
bool
isConfigProperty(ReflectionProperty $prop)

Is a var config or not?

protected
true
isConfigValue(mixed $input)

Detect if a value is a valid config

public
array
getClasses()

No description

Details

__construct(array|callable $classes)

No description

Parameters

array|callable $classes

List of classes, or callback to lazy-load

MutableConfigCollectionInterface transform(MutableConfigCollectionInterface $collection)

This loops through each class and fetches the private static config for each class.

protected mixed getClassConfig(string $class)

This is responsible for introspecting a given class and returning an array continaing all of its private statics

Parameters

string $class

Return Value

mixed

protected bool isConfigProperty(ReflectionProperty $prop)

Is a var config or not?

Parameters

ReflectionProperty $prop

Return Value

bool

protected true isConfigValue(mixed $input)

Detect if a value is a valid config

Parameters

mixed $input

Return Value

true

array getClasses()

No description

Return Value

array