Test Failed
Push — master ( 260f64...3b7304 )
by Mehmet
04:12
created

ModelFactory::__invoke()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 3
1
<?php
2
declare(strict_types=1);
3
4
namespace SelamiApp\Factories;
5
6
use Zend\ServiceManager\Factory\FactoryInterface;
7
use Interop\Container\ContainerInterface;
8
9
class ModelFactory implements FactoryInterface
10
{
11
    public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
12
    {
13
        $dependency = $container->get(stdClass::class);
14
        return new $requestedName($dependency);
15
    }
16
}