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

BaseRepository::getDb()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
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