ConsoleMessageDecorator   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A decorate() 0 4 1
1
<?php
2
/*
3
 * Copyright (c) 2015 Juan José Torroglosa Ramón
4
 *
5
 * This file is part of the Cliphar package.
6
 *
7
 * For the full copyright and license information, please view
8
 * the LICENSE file that was distributed with this source code.
9
 */
10
11
namespace Cliphar\Logger\Decorator;
12
13
class ConsoleMessageDecorator
14
{
15
    /**
16
     * @var ConsoleMessageDecorator
17
     */
18
    protected $decorator;
19
20
    public function __construct($decorator = null)
21
    {
22
        $this->decorator = $decorator;
23
    }
24
25
    /**
26
     * @param string $level
27
     * @param string $message
28
     * @return mixed
29
     */
30
    public function decorate($level, $message)
31
    {
32
        return $message;
33
    }
34
}