| Total Complexity | 4 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | class DbGroupQueryImpl extends GroupQueryImpl |
||
| 16 | { |
||
| 17 | public function __construct(CommandExecutorInterface $commandExecutor = null) |
||
| 18 | { |
||
| 19 | parent::__construct($commandExecutor); |
||
| 20 | } |
||
| 21 | |||
| 22 | public function executeCount(CommandContext $commandContext): int |
||
| 23 | { |
||
| 24 | $this->checkQueryOk(); |
||
| 25 | $identityProvider = $this->getIdentityProvider($commandContext); |
||
| 26 | return $identityProvider->findGroupCountByQueryCriteria($this); |
||
| 27 | } |
||
| 28 | |||
| 29 | public function executeList(CommandContext $commandContext, Page $page): array |
||
| 30 | { |
||
| 31 | $this->checkQueryOk(); |
||
| 32 | $identityProvider = $this->getIdentityProvider($commandContext); |
||
| 33 | return $identityProvider->findGroupByQueryCriteria($this); |
||
| 34 | } |
||
| 35 | |||
| 36 | protected function getIdentityProvider(CommandContext $commandContext): DbReadOnlyIdentityServiceProvider |
||
| 39 | } |
||
| 40 | } |
||
| 41 |