Test Failed
Push — master ( 90f1e5...8cd561 )
by Jim
02:25
created

Log   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
dl 0
loc 18
c 0
b 0
f 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A __callStatic() 0 3 1
1
<?php
2
namespace TimSDK\Support;
3
4
use Monolog\Handler\ErrorLogHandler;
5
use Monolog\Handler\NullHandler;
6
use Monolog\Logger as Monolog;
7
use Psr\Log\LoggerInterface;
8
use TimSDK\Core\Exceptions\NotInstantiableException;
9
10
/**
11
 * Class Log
12
 *
13
 * @method static debug($message, $context = null)
14
 * @method static info($message, $context = null)
15
 * @method static notice($message, $context = null)
16
 * @method static warning($message, $context = null)
17
 * @method static error($message, $context = null)
18
 * @method static critical($message, $context = null)
19
 * @method static alert($message, $context = null)
20
 * @method static emergency($message, $context = null)
21
 * @package TimSDK\Support
22
 */
23
class Log
24
{
25
    private function __construct()
26
    {
27
        throw new NotInstantiableException(__CLASS__ . ' can not instantiate.');
28
    }
29
30
    /**
31
     * Forward call.
32
     *
33
     * @param string $method
34
     * @param array  $arguments
35
     *
36
     * @return mixed
37
     */
38
    public static function __callStatic($method, $arguments)
39
    {
40
        return forward_static_call_array([timsdk_app('log'), $method], $arguments);
41
    }
42
}
43