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

LoggerFactory::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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