Passed
Push — master ( 9aa048...898b5e )
by Mattia
04:05
created

Point   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 38
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getX() 0 3 1
A __construct() 0 4 1
A getY() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Minepic\Image;
6
7
class Point
8
{
9
    /**
10
     * @var int
11
     */
12
    private int $x;
13
14
    /**
15
     * @var int
16
     */
17
    private int $y;
18
19
    /**
20
     * Point constructor.
21
     *
22
     * @param int $x
23
     * @param int $y
24
     */
25
    public function __construct(int $x, int $y)
26
    {
27
        $this->x = $x;
28
        $this->y = $y;
29
    }
30
31
    /**
32
     * @return int
33
     */
34
    public function getX(): int
35
    {
36
        return $this->x;
37
    }
38
39
    /**
40
     * @return int
41
     */
42
    public function getY(): int
43
    {
44
        return $this->y;
45
    }
46
}
47