Log   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A __callStatic() 0 4 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