FlipVerticalCommand   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 1
Metric Value
eloc 3
c 2
b 0
f 1
dl 0
loc 11
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A execute() 0 5 1
1
<?php
2
3
namespace Jackal\ImageMerge\Command;
4
5
use Jackal\ImageMerge\Model\Image;
6
7
/**
8
 * Class FlipVerticalCommand
9
 * @package Jackal\ImageMerge\Command
10
 */
11
class FlipVerticalCommand extends AbstractCommand
12
{
13
    /**
14
     * @param Image $image
15
     * @return Image
16
     */
17
    public function execute(Image $image)
18
    {
19
        imageflip($image->getResource(), IMG_FLIP_VERTICAL);
20
21
        return $image;
22
    }
23
}
24