mirror of
https://github.com/doctrine/doctrine-website.git
synced 2026-03-23 22:32:11 +01:00
Because of other involved SkeletonMapper classes does the custom DataSource still need to extend original one
21 lines
376 B
PHP
21 lines
376 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Doctrine\Website\DataSources;
|
|
|
|
final readonly class ArrayDataSource implements DataSource
|
|
{
|
|
/** @param mixed[] $sourceRows */
|
|
public function __construct(
|
|
private array $sourceRows,
|
|
) {
|
|
}
|
|
|
|
/** @return mixed[][] */
|
|
public function getSourceRows(): array
|
|
{
|
|
return $this->sourceRows;
|
|
}
|
|
}
|