Test Failed
Push — master ( a5a28b...999969 )
by Marcin
02:51
created

Point::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 5
Ratio 100 %

Importance

Changes 0
Metric Value
dl 5
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
1
<?php
2
/**
3
 * Grandstream-XMLApp
4
 *
5
 * Copyright (c) 2017 pudelek.org.pl
6
 *
7
 * @license MIT License (MIT)
8
 *
9
 * For the full copyright and license information, please view source file
10
 * that is bundled with this package in the file LICENSE
11
 *
12
 * @author Marcin Pudełek <[email protected]>
13
 */
14
15
namespace mrcnpdlk\Grandstream\XMLApp\Helper;
16
17
/**
18
 * Class Point
19
 *
20
 * @package mrcnpdlk\Grandstream\XMLApp\Helper
21
 */
22 View Code Duplication
class Point
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
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