Completed
Pull Request — master (#9)
by Vytautas
10:39 queued 07:17
created

FitTransformerFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 7 1
1
<?php
2
namespace SvImages\Transformer\Factory;
3
4
use Psr\Container\ContainerInterface;
5
use SvImages\Transformer\Fit;
6
7
/**
8
 * @author Vytautas Stankus <[email protected]>
9
 * @license MIT
10
 */
11
class FitTransformerFactory
12
{
13
    public function __invoke(ContainerInterface $container)
14
    {
15
        /** @var \Intervention\Image\ImageManager $manager */
16
        $manager = $container->get('SvImages\ImageManager\InterventionImageManager');
17
18
        return new Fit($manager);
19
    }
20
}
21