Completed
Push — master ( edcce7...6aac40 )
by Kacper
04:23
created

Console::close()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * Highlighter
4
 *
5
 * Copyright (C) 2016, Some right reserved.
6
 *
7
 * @author Kacper "Kadet" Donat <[email protected]>
8
 *
9
 * Contact with author:
10
 * Xmpp: [email protected]
11
 * E-mail: [email protected]
12
 *
13
 * From Kadet with love.
14
 */
15
16
namespace Kadet\Highlighter\Utils;
17
18
class Console
19
{
20
    /**
21
     * @var ConsoleHelper
22
     */
23
    private static $_instance;
24
25
    /**
26
     * @return ConsoleHelper
27
     */
28
    public static function get()
29
    {
30
        if (!isset(self::$_instance)) {
31
            self::$_instance = new ConsoleHelper();
32
        }
33
34
        return self::$_instance;
35
    }
36
37
    public static function styled($style, $text)
38
    {
39
        return self::get()->styled($style, $text);
40
    }
41
42
    public static function open($style)
43
    {
44
        return self::get()->open($style);
45
    }
46
47
    public static function close()
48
    {
49
        return self::get()->close();
50
    }
51
52
    public static function reset()
53
    {
54
        return self::get()->reset();
55
    }
56
57
    public static function current()
58
    {
59
        return self::get()->current();
60
    }
61
62
    public static function set($style)
63
    {
64
        return self::get()->set($style);
65
    }
66
}
67