Completed
Push — master ( 9a9f60...45932f )
by Michał
02:53
created

Krumo::__invoke()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php namespace nyx\diagnostics\debug\dumpers;
2
3
// Internal dependencies
4
use nyx\diagnostics\debug\interfaces;
5
6
/**
7
 * Krumo Dumper
8
 *
9
 * A bridge allowing to use Krumo as a Dumper within the Debug subcomponent.
10
 *
11
 * Important note: This bridge relies on the krumo class being available, but it is not a Composer package. Please
12
 * take a look at {@see http://krumo.sourceforge.net} on how to install and load it.
13
 *
14
 * @version     0.1.0
15
 * @author      Michal Chojnacki <[email protected]>
16
 * @copyright   2012-2017 Nyx Dev Team
17
 * @link        https://github.com/unyx/nyx
18
 */
19
class Krumo implements interfaces\Dumper
20
{
21
    /**
22
     * {@inheritDoc}
23
     */
24
    public function __invoke(...$vars)
25
    {
26
        // @todo Actual output handling.
27
        echo call_user_func('krumo::dump', ...$vars);
28
    }
29
}
30