InterventionFactory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 13
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A make() 0 6 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