Skip to content

RoutingArraySource

RoutingArraySource allows you to provide array sources for the routing

class RoutingArraySource implements IRoutingSource

ImplementsIRoutingSource
Since1.0.0
SourceRouting/RoutingArraySource.php

public function __construct(array<mixed> $data): mixed

Constructor.

An array with data.

ParameterTypeDescription
$dataarray``<``mixed``>An array with data.

Returns mixed

MethodDescription
[`getSource(array<intstring> $parts): mixed`](#getsource)

public function getSource(array<int|string> $parts): mixed

Retrieves the value for a given entry from the source.

An array with the name parts for the entry.

ParameterTypeDescription
$parts`array<int“string>`

Returns mixed — The value.