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

CropEntropy::__construct()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

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