Box   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 35
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getHeight() 0 3 1
A getWidth() 0 3 1
A __construct() 0 4 1
1
<?php
2
3
namespace AmaTeam\Image\Projection\Geometry;
4
5
class Box
6
{
7
    /**
8
     * @var int
9
     */
10
    private $height;
11
    /**
12
     * @var int
13
     */
14
    private $width;
15
16
    /**
17
     * @param int $height
18
     * @param int $width
19
     */
20
    public function __construct($width, $height)
21
    {
22
        $this->width = $width;
23
        $this->height = $height;
24
    }
25
26
    /**
27
     * @return int
28
     */
29
    public function getHeight()
30
    {
31
        return $this->height;
32
    }
33
34
    /**
35
     * @return int
36
     */
37
    public function getWidth()
38
    {
39
        return $this->width;
40
    }
41
}
42