Skip to content

Commit

Permalink
feat: add check for licence with valid operator admin VOL-5955
Browse files Browse the repository at this point in the history
  • Loading branch information
ilindsay committed Dec 12, 2024
1 parent 02e9bea commit 546bbcb
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
10 changes: 10 additions & 0 deletions config/backend-routes.config.php
Original file line number Diff line number Diff line change
Expand Up @@ -879,6 +879,16 @@
'single' => RouteConfig::getSingleConfig(
[
'GET' => QueryConfig::getConfig(Query\Licence\Licence::class),
'exists-with-operator-admin' => [
'type' => 'Segment',
'options' => [
'route' => 'exists-with-operator-admin[/]'
],
'may_terminate' => false,
'child_routes' => [
'GET' => QueryConfig::getConfig(Query\Licence\ExistsWithOperatorAdmin::class),
]
],
'decisions' => [
'type' => 'Segment',
'options' => [
Expand Down
25 changes: 25 additions & 0 deletions src/Query/Licence/ExistsWithOperatorAdmin.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

namespace Dvsa\Olcs\Transfer\Query\Licence;

use Dvsa\Olcs\Transfer\Util\Annotation as Transfer;
use Dvsa\Olcs\Transfer\Query\AbstractQuery;

/**
* @Transfer\RouteName("backend/licence/single/exists-with-operator-admin")
*/
class ExistsWithOperatorAdmin extends AbstractQuery
{
/**
* @Transfer\Filter("Laminas\Filter\StringTrim")
*/
protected $licNo;

/**
* @return mixed
*/
public function getLicNo()
{
return $this->licNo;
}
}

0 comments on commit 546bbcb

Please sign in to comment.