Completed
Push — master ( b6a852...a7b775 )
by Max
02:15 queued 11s
created

MagicClass::getDummy()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
/*
4
 *  @copyright (c) 2019 Mendel <[email protected]>
5
 *  @license see license.txt
6
 */
7
8
namespace drycart\di\tests\dummy;
9
10
/**
11
 * @author mendel
12
 */
13
class MagicClass
14
{
15
    use \drycart\di\MagicServiceLocatorTrait;
16
    
17
    public function getDummy() : Dummy
18
    {
19
        return $this->serviceLocator(Dummy::class);
20
    }
21
    
22
    public function getDummyPlus() : DummyPlusParameter
23
    {
24
        return $this->serviceLocator(DummyPlusParameter::class,['intDummy'=>5]);
25
    }
26
}
27