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

ConfigFileServiceFactory::create()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 5
ccs 3
cts 3
cp 1
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
crap 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