diff --git a/src/CustomReport/Service/AdapterService.php b/src/CustomReport/Service/AdapterService.php index 610e73d5..9916d957 100644 --- a/src/CustomReport/Service/AdapterService.php +++ b/src/CustomReport/Service/AdapterService.php @@ -34,6 +34,7 @@ public function __construct( ) { } + public function getData(Config $report, ChartDataParameter $chartDataParameter): array { return $this->getAdapter($report)->getData( @@ -47,6 +48,9 @@ public function getData(Config $report, ChartDataParameter $chartDataParameter): ); } + /** + * @throws NotFoundException + */ private function getAdapter(Config $report): CustomReportAdapterInterface { $configuration = $report->getDataSourceConfig(); diff --git a/src/CustomReport/Service/AdapterServiceInterface.php b/src/CustomReport/Service/AdapterServiceInterface.php index 72d81c27..3973c1c2 100644 --- a/src/CustomReport/Service/AdapterServiceInterface.php +++ b/src/CustomReport/Service/AdapterServiceInterface.php @@ -18,11 +18,15 @@ use Pimcore\Bundle\CustomReportsBundle\Tool\Config; use Pimcore\Bundle\StudioBackendBundle\CustomReport\MappedParameter\ChartDataParameter; +use Pimcore\Bundle\StudioBackendBundle\Exception\Api\NotFoundException; /** * @internal */ interface AdapterServiceInterface { + /** + * @throws NotFoundException + */ public function getData(Config $report, ChartDataParameter $chartDataParameter): array; }