Code Duplication    Length = 33-33 lines in 2 locations

src/CustomScreen/Geometry/Point.php 1 location

@@ 22-54 (lines=33) @@
19
 *
20
 * @package mrcnpdlk\Grandstream\XMLApp\CustomScreen\Geometry
21
 */
22
class Point
23
{
24
    /**
25
     * @var int
26
     */
27
    private $iX;
28
    /**
29
     * @var int
30
     */
31
    private $iY;
32
33
    public function __construct(int $x, int $y)
34
    {
35
        $this->iX = $x;
36
        $this->iY = $y;
37
    }
38
39
    /**
40
     * @return int
41
     */
42
    public function getX()
43
    {
44
        return $this->iX;
45
    }
46
47
    /**
48
     * @return int
49
     */
50
    public function getY()
51
    {
52
        return $this->iY;
53
    }
54
}
55

src/Helper/Point.php 1 location

@@ 22-54 (lines=33) @@
19
 *
20
 * @package mrcnpdlk\Grandstream\XMLApp\Helper
21
 */
22
class Point
23
{
24
    /**
25
     * @var int
26
     */
27
    private $iX;
28
    /**
29
     * @var int
30
     */
31
    private $iY;
32
33
    public function __construct(int $x, int $y)
34
    {
35
        $this->iX = $x;
36
        $this->iY = $y;
37
    }
38
39
    /**
40
     * @return int
41
     */
42
    public function getX()
43
    {
44
        return $this->iX;
45
    }
46
47
    /**
48
     * @return int
49
     */
50
    public function getY()
51
    {
52
        return $this->iY;
53
    }
54
}
55