/** * @param IMap $map * @param float[][] $heightsArray 2d array */ public function __construct(IMap $map, ArrayAccess $heightsArray) { parent::__construct($map); if ($this->checkInputArraySizes($heightsArray)) { $this->unpreparedPoints = $heightsArray; } }
/** * Уточнение для данного класса, что Cell instanceof HeightCell * * @param $x * @param $y * * @return HeightCell */ public function getCell($x, $y) { return parent::getCell($x, $y); }