Skip to content
docsv0.1.0

DataSourceResult

The result of resolving a {@see DataSourceRequest} against a {@see \Milpa\Live\Contracts\Data\DataSourceInterface}.

DataSourceResult::__construct()

public function __construct(array $items, array $meta = []):

Parameters

Parameters of __construct()
NameTypeDescription
$itemsarray<int, array<string, mixed>>Matching items, already limited/filtered by the data source.
$metaarray<string, mixed>Source-defined metadata about the result (e.g. `total`, `truncated`); shape is not standardized across data sources.