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

CropEntropy::grayscaleEntropy()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 1 Features 0
Metric Value
c 2
b 1
f 0
dl 0
loc 7
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
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