Обновление клиента
This commit is contained in:
+33
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Hexogen\KDTree;
|
||||
|
||||
use Hexogen\KDTree\Interfaces\ItemInterface;
|
||||
|
||||
class Item extends Point implements ItemInterface
|
||||
{
|
||||
private $id;
|
||||
|
||||
/**
|
||||
* Item constructor.
|
||||
* @param int $id
|
||||
* @param array $dValues
|
||||
*/
|
||||
public function __construct(int $id, array $dValues)
|
||||
{
|
||||
parent::__construct($dValues);
|
||||
$this->id = $id;
|
||||
}
|
||||
|
||||
/**
|
||||
* get item id
|
||||
*
|
||||
* @api
|
||||
* @return int item id
|
||||
*/
|
||||
public function getId() : int
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user