Completed
Pull Request — master (#41)
by
unknown
02:46
created

InterventionFactory::make()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
1
<?php namespace Modules\Media\Image\Intervention;
2
3
use Modules\Media\Image\ImageFactoryInterface;
4
5
class InterventionFactory implements ImageFactoryInterface
6
{
7
    /**
8
     * @param  string                                     $manipulation
9
     * @return \Modules\Media\Image\ImageHandlerInterface
10
     */
11
    public function make($manipulation)
12
    {
13
        $class = 'Modules\\Media\\Image\\Intervention\\Manipulations\\' . ucfirst($manipulation);
14
15
        return new $class();
16
    }
17
}
18