Completed
Push — master ( 2d7c4c...dda5fd )
by Max
03:40
created

DummyServiceProvider::__construct()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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