Conditions | 3 |
Paths | 4 |
Total Lines | 10 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | 1 | public function __construct( |
|
17 | public ?string $connection = null, |
||
18 | public ?string $select = null, |
||
19 | ) { |
||
20 | 1 | if (is_null($this->connection)) { |
|
21 | 1 | $this->connection = config('sql-function-repository.connection', DB::getDefaultConnection()); |
|
22 | } |
||
23 | |||
24 | 1 | if (is_null($this->select)) { |
|
25 | 1 | $this->select = config('sql-function-repository.select', 'select * from '); |
|
26 | } |
||
59 |