| Total Complexity | 2 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class Item extends Point implements ItemInterface |
||
| 9 | { |
||
| 10 | private $id; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * Item constructor. |
||
| 14 | * @param int $id |
||
| 15 | * @param array $dValues |
||
| 16 | */ |
||
| 17 | 99 | public function __construct(int $id, array $dValues) |
|
| 18 | { |
||
| 19 | 99 | parent::__construct($dValues); |
|
| 20 | 99 | $this->id = $id; |
|
| 21 | 99 | } |
|
| 22 | |||
| 23 | /** |
||
| 24 | * get item id |
||
| 25 | * |
||
| 26 | * @api |
||
| 27 | * @return int item id |
||
| 28 | */ |
||
| 29 | 63 | public function getId() : int |
|
| 32 | } |
||
| 33 | } |
||
| 34 |