Completed
Push — 2.0 ( 31dadf )
by Stig
03:09
created

CropEntropy::getEntropyOffsets()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 1 Features 0
Metric Value
c 2
b 1
f 0
dl 0
loc 12
rs 9.4285
cc 1
eloc 6
nc 1
nop 3
1
<?php
2
3
namespace Stojg\Crop;
4
5
class CropEntropy
6
{
7
    /**
8
     * @var \Imagick
9
     */
10
    protected $imagick = null;
11
12
    /**
13
     * CropEntropy constructor.
14
     * @param \Imagick|null $image
15
     */
16
    public function __construct(\Imagick $image = null)
17
    {
18
        if($image !== null) {
19
            $this->imagick = $image;
20
        }
21
    }
22
}
23