squirrelphp/entities

View on GitHub
src/RepositorySelectQuery.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php

namespace Squirrel\Entities;

use Squirrel\Queries\DBSelectQueryInterface;

class RepositorySelectQuery implements RepositorySelectQueryInterface
{
    public function __construct(
        private DBSelectQueryInterface $selectQuery,
        private RepositoryConfigInterface $repositoryConfig,
    ) {
    }

    public function getQuery(): DBSelectQueryInterface
    {
        return $this->selectQuery;
    }

    public function getConfig(): RepositoryConfigInterface
    {
        return $this->repositoryConfig;
    }
}