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

CropEntropy   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 18
rs 10

1 Method

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