DummyServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
c 0
b 0
f 0
dl 0
loc 6
rs 10
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 2
1
<?php
2
/*
3
 * @copyright (c) 2019 Mendel <[email protected]>
4
 * @license see license.txt
5
 */
6
7
namespace drycart\di\tests\dummy;
8
9
/**
10
 * Description of Dummy3
11
 *
12
 * @author mendel
13
 */
14
class DummyServiceProvider implements DummyInterface
15
{
16
    public function __construct(int $answer)
17
    {
18
        if (!defined('DI_REQUIRED_TEST_CONST')) {
19
            define('DI_REQUIRED_TEST_CONST', $answer);
20
        }
21
    }
22
}
23