isClosed; } /** * Is potential candidate * * @return bool * * @since 1.0.0 */ public function isOpened() : bool { return $this->isOpened; } /** * Is already tested * * @return bool * * @since 1.0.0 */ public function isTested() : bool { return $this->isTested; } /** * Set check status * * @param bool $isClosed Is closed * * @return void * * @since 1.0.0 */ public function setClosed(bool $isClosed) : void { $this->isClosed = $isClosed; } /** * Set potential candidate * * @param bool $isOpened Is potential candidate * * @return void * * @since 1.0.0 */ public function setOpened(bool $isOpened) : void { $this->isOpened = $isOpened; } /** * Set tested * * @param bool $isTested Node tested? * * @return void * * @since 1.0.0 */ public function setTested(bool $isTested) : void { $this->isTested = $isTested; } /** * Set the g score * * @param float $g G score * * @return void * * @since 1.0.0 */ public function setG(float $g) : void { $this->g = $g; } /** * Set the heuristic distance * * @param float $h H distance * * @return void * * @since 1.0.0 */ public function setH(?float $h) : void { $this->h = $h; } /** * Set the f score * * @param float $f F score * * @return void * * @since 1.0.0 */ public function setF(float $f) : void { $this->f = $f; } /** * Get the g score * * @return float * * @since 1.0.0 */ public function getG() : float { return $this->g; } /** * Get the heuristic distance * * @return float * * @since 1.0.0 */ public function getH() : ?float { return $this->h; } /** * Get the f score * * @return float * * @since 1.0.0 */ public function getF() : float { return $this->f; } }