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

MagicClass   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 12
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getDummy() 0 3 1
A getDummyPlus() 0 3 1
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