class ColorManager (View source)

Traits

Properties

protected string $evaluationIdentifier from  EvaluatesClosures
protected array $colors
protected array<string,int[]> $overridingShades
protected array<string,int[]> $addedShades
protected array<string,int[]> $removedShades

Methods

mixed
evaluate(mixed $value, array $namedInjections = [], array $typedInjections = [])

No description

mixed
resolveClosureDependencyForEvaluation(ReflectionParameter $parameter, array $namedInjections, array $typedInjections)

No description

array
resolveDefaultClosureDependencyForEvaluationByName(string $parameterName)

No description

array
resolveDefaultClosureDependencyForEvaluationByType(string $parameterType)

No description

string|null
register(array|Closure $colors)

No description

array|string
processColor(array|string $color)

No description

array
getColors()

No description

void
overrideShades(string $alias, array $shades)

No description

array|null
getOverridingShades(string $alias)

No description

void
addShades(string $alias, array $shades)

No description

array|null
getAddedShades(string $alias)

No description

void
removeShades(string $alias, array $shades)

No description

array|null
getRemovedShades(string $alias)

No description

Details

mixed evaluate(mixed $value, array $namedInjections = [], array $typedInjections = [])

No description

Parameters

mixed $value
array $namedInjections
array $typedInjections

Return Value

mixed

protected mixed resolveClosureDependencyForEvaluation(ReflectionParameter $parameter, array $namedInjections, array $typedInjections)

No description

Parameters

ReflectionParameter $parameter
array $namedInjections
array $typedInjections

Return Value

mixed

protected array resolveDefaultClosureDependencyForEvaluationByName(string $parameterName)

No description

Parameters

string $parameterName

Return Value

array

protected array resolveDefaultClosureDependencyForEvaluationByType(string $parameterType)

No description

Parameters

string $parameterType

Return Value

array

protected string|null getTypedReflectionParameterClassName(ReflectionParameter $parameter)

No description

Parameters

ReflectionParameter $parameter

Return Value

string|null

ColorManager register(array|Closure $colors)

No description

Parameters

array|Closure $colors

Return Value

ColorManager

array|string processColor(array|string $color)

No description

Parameters

array|string $color

Return Value

array|string

array getColors()

No description

Return Value

array

void overrideShades(string $alias, array $shades)

No description

Parameters

string $alias
array $shades

Return Value

void

array|null getOverridingShades(string $alias)

No description

Parameters

string $alias

Return Value

array|null

| null

void addShades(string $alias, array $shades)

No description

Parameters

string $alias
array $shades

Return Value

void

array|null getAddedShades(string $alias)

No description

Parameters

string $alias

Return Value

array|null

| null

void removeShades(string $alias, array $shades)

No description

Parameters

string $alias
array $shades

Return Value

void

array|null getRemovedShades(string $alias)

No description

Parameters

string $alias

Return Value

array|null

| null