TraitClient   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
c 0
b 0
f 0
dl 0
loc 7
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getApropriateConnection() 0 5 1
1
<?php
2
namespace Mezon\PdoCrud\Tests;
3
4
use Mezon\PdoCrud\ApropriateConnectionTrait;
5
use Mezon\PdoCrud\PdoCrud;
6
7
class TraitClient extends TraitClientBase
8
{
9
    public function getApropriateConnection(): PdoCrud
10
    {
11
        return $this->getConnection([
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this->getConnect...'exact-db-connection')) could return the type true which is incompatible with the type-hinted return Mezon\PdoCrud\PdoCrud. Consider adding an additional type-check to rule them out.
Loading history...
12
            'default-db-connection',
13
            'exact-db-connection'
14
        ]);
15
    }
16
}
17