Passed
Push — master ( c54df4...5b2f45 )
by Mauro
02:00
created

BaseRepository   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 12
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getDb() 0 4 1
1
<?php
2
3
namespace App\Repository;
4
5
/**
6
 * Base Repository.
7
 */
8
abstract class BaseRepository
9
{
10
    /**
11
     * @var \PDO $database
12
     */
13
    protected $database;
14
15
    protected function getDb()
16
    {
17
        return $this->database;
18
    }
19
}
20