Completed
Pull Request — master (#16)
by Nikola
01:29
created

DebugClassLoader::reset()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
/**
3
 * Go! AOP framework
4
 *
5
 * @copyright Copyright 2015, Lisachenko Alexander <[email protected]>
6
 *
7
 * This source file is subject to the license that is bundled
8
 * with this source code in the file LICENSE.
9
 */
10
11
namespace Symfony\Component\Debug;
12
13
/**
14
 * Class DebugClassLoader
15
 *
16
 * A mock class for testing initialization flow.
17
 */
18
class DebugClassLoader
19
{
20
    public static $enabled = false;
21
    public static $invocations = [];
22
23
    public static function enable()
24
    {
25
        self::$enabled = true;
26
        self::$invocations[] = 'enable';
27
    }
28
29
    public static function disable()
30
    {
31
        self::$enabled = false;
32
        self::$invocations[] = 'disable';
33
    }
34
35
    public static function reset()
36
    {
37
        self::$enabled = false;
38
        self::$invocations = [];
39
    }
40
}
41