Passed
Push — master ( d25cd5...5cf75b )
by Nikolaos
03:08
created

LoggerFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 66.67%

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 13
ccs 2
cts 3
cp 0.6667
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A newInstance() 0 3 1
1
<?php
2
3
/**
4
 * This file is part of the Phalcon Framework.
5
 *
6
 * (c) Phalcon Team <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE.txt
9
 * file that was distributed with this source code.
10
 */
11
12
declare(strict_types=1);
13
14
namespace Phalcon\Logger;
15
16
use Phalcon\Logger;
17
18
/**
19
 * PhalconNG\Logger\LoggerFactory
20
 */
21
class LoggerFactory
22
{
23
    /**
24
     * Returns a Logger object
25
     *
26
     * @param string $name
27
     * @param array  $adapters
28
     *
29
     * @return Logger
30
     */
31 2
    public function newInstance(string $name, array $adapters = []): Logger
32
    {
33 2
        return new Logger($name, $adapters);
34
    }
35
}
36