Passed
Pull Request — main (#55)
by mohsen
12:11
created

LogManager::createLogDriver()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
use Illuminate\Support\Manager;
4
use MohsenAbrishami\Stethoscope\LogRecord\Contracts\LogRecordInterface;
5
6
class LogManager extends Manager
7
{
8
    /**
9
     * Get the default driver name.
10
     *
11
     * @return string
12
     */
13
    public function getDefaultDriver()
14
    {
15
        return config('stethoscope.drivers.log');
16
    }
17
    /**
18
     * Get an instance of the log driver.
19
     *
20
     * @return LogRecordInterface
21
     */
22
    public function createLogDriver(): LogRecordInterface
23
    {
24
        return new LogRecordInterface();
25
    }
26
}
27