Test Failed
Push — master ( 67b70b...c2443c )
by Mike
02:06
created

FileLogHandler   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A handleLog() 0 3 1
1
<?php
2
declare(strict_types=1);
3
4
5
namespace Xervice\Logger\Business\Handler\File;
6
7
8
use DataProvider\LogMessageDataProvider;
0 ignored issues
show
Bug introduced by
The type DataProvider\LogMessageDataProvider was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
9
use Xervice\Core\Locator\AbstractWithLocator;
10
use Xervice\Logger\Business\Handler\LogHandlerInterface;
11
12
/**
13
 * @method \Xervice\Logger\LoggerFactory getFactory()
14
 */
15
class FileLogHandler extends AbstractWithLocator implements LogHandlerInterface
16
{
17
    /**
18
     * @param \DataProvider\LogMessageDataProvider $messageDataProvider
19
     *
20
     * @throws \Core\Locator\Dynamic\ServiceNotParseable
21
     */
22
    public function handleLog(LogMessageDataProvider $messageDataProvider): void
23
    {
24
        $this->getFactory()->createFileWriter()->writeLog($messageDataProvider);
25
    }
26
}
27