Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
1 / 1 |
| PostgresqlLoanRepository | |
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
2 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| quoteTableName | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | // ╔════════════════════════════════════════════════════════════╗ |
| 4 | // ║ MIT Licence (#Expat) - https://opensource.org/licenses/MIT ║ |
| 5 | // ║ Copyright 2026 Frederic Poeydomenge <dyno@phexium.com> ║ |
| 6 | // ╚════════════════════════════════════════════════════════════╝ |
| 7 | |
| 8 | declare(strict_types=1); |
| 9 | |
| 10 | namespace AppDemo\Loan\Infrastructure; |
| 11 | |
| 12 | use AppDemo\Loan\Infrastructure\Mapper\LoanMapper; |
| 13 | use Override; |
| 14 | use PDO; |
| 15 | use Phexium\Plugin\SqlDriver\Adapter\PostgresqlDriver; |
| 16 | |
| 17 | final class PostgresqlLoanRepository extends AbstractSqlLoanRepository |
| 18 | { |
| 19 | public function __construct( |
| 20 | PostgresqlDriver $driver, |
| 21 | PDO $pdo, |
| 22 | LoanMapper $mapper, |
| 23 | ) { |
| 24 | parent::__construct($driver, $pdo, $mapper); |
| 25 | } |
| 26 | |
| 27 | #[Override] |
| 28 | protected function quoteTableName(string $tableName): string |
| 29 | { |
| 30 | return '"'.$tableName.'"'; |
| 31 | } |
| 32 | } |