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

FitTransformerFactory::createService()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 8
ccs 0
cts 6
cp 0
rs 9.4285
cc 1
eloc 4
nc 1
nop 1
crap 2
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