Skip to content

Commit

Permalink
Added phpdocs for exception
Browse files Browse the repository at this point in the history
  • Loading branch information
mcop1 committed Jan 15, 2025
1 parent 1590d89 commit d216e5a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/CustomReport/Service/AdapterService.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public function __construct(
) {
}


public function getData(Config $report, ChartDataParameter $chartDataParameter): array
{
return $this->getAdapter($report)->getData(
Expand All @@ -47,6 +48,9 @@ public function getData(Config $report, ChartDataParameter $chartDataParameter):
);
}

/**
* @throws NotFoundException
*/
private function getAdapter(Config $report): CustomReportAdapterInterface
{
$configuration = $report->getDataSourceConfig();
Expand Down
4 changes: 4 additions & 0 deletions src/CustomReport/Service/AdapterServiceInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit d216e5a

Please sign in to comment.