for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Stu\Lib\Map\VisualPanel\Layer\DataProvider\Subspace;
use Crunz\Exception\NotImplementedException;
use Stu\Lib\Map\VisualPanel\PanelBoundaries;
use Stu\Orm\Repository\MapRepositoryInterface;
use Stu\Orm\Repository\StarSystemMapRepositoryInterface;
final class AllianceSubspaceDataProvider extends AbstractSubspaceDataProvider
{
private int $allianceId;
public function __construct( #
int $allianceId,
MapRepositoryInterface $mapRepository,
StarSystemMapRepositoryInterface $starSystemMapRepository
) {
parent::__construct($mapRepository, $starSystemMapRepository);
$this->allianceId = $allianceId;
}
protected function provideDataForMap(PanelBoundaries $boundaries): array
return $this->mapRepository->getAllianceSubspaceLayerData($boundaries, $this->allianceId, $this->createResultSetMapping());
protected function provideDataForSystemMap(PanelBoundaries $boundaries): array
throw new NotImplementedException('this is not possible');