Log::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
rs 10
c 1
b 0
f 0
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