Completed
Push — master ( 9b3fe3...b82616 )
by Hong
06:10 queued 03:55
created

EchoHandler   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 10
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A write() 0 4 1
1
<?php
2
3
/**
4
 * Phoole (PHP7.2+)
5
 *
6
 * @category  Library
7
 * @package   Phoole\Logger
8
 * @copyright Copyright (c) 2019 Hong Zhang
9
 */
10
declare(strict_types=1);
11
12
namespace Phoole\Logger\Handler;
13
14
use Phoole\Logger\Entry\LogEntryInterface;
15
16
/**
17
 * echo log message to STDOUT
18
 *
19
 * @package Phoole\Logger
20
 */
21
class EchoHandler extends HandlerAbstract
22
{
23
    /**
24
     * {@inheritDoc}
25
     */
26
    protected function write(LogEntryInterface $entry)
27
    {
28
        echo $this->getFormatter()->format($entry);
29
    }
30
}
31