Completed
Push — master ( 557060...19a865 )
by Muhammad Kashif
25:46
created

ConfigFileServiceFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 0
cbo 0
dl 0
loc 11
ccs 3
cts 3
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 5 1
1
<?php
2
3
namespace Gr8abbasi\Container\Factory;
4
5
use Gr8abbasi\Container\Factory\ServiceFactoryInterface;
6
7
/**
8
 * ConfigFileServiceFactory
9
 */
10
class ConfigFileServiceFactory implements ServiceFactoryInterface
11
{
12
    /**
13
     * @inheritdoc
14
     */
15 2
    public function create($service)
16
    {
17 2
        $class = new \ReflectionClass($service);
18 2
        return $class->newInstance();
19
    }
20
}
21