Update Grid.php

This commit is contained in:
Dennis Eichhorn 2019-08-20 16:13:05 +02:00 committed by GitHub
parent 8f3eeac987
commit ea85dd5f25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1 +1,39 @@
<?php
/**
* Orange Management
*
* PHP Version 7.4
*
* @package phpOMS\Algorithm\PathFinding
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
*/
declare(strict_types=1);
namespace phpOMS\Algorithm\PathFinding;
/**
* Grid of nodes.
*
* @package phpOMS\Algorithm\PathFinding
* @license OMS License 1.0
* @link https://orange-management.org
* @since 1.0.0
*/
class Grid
{
private array $nodes = [];
private ?Node $nullNode = null;
public function getNullNode() : Node
{
return $this->nullNode;
}
public function setNullNode(Node $nullNode) : void
{
$this->nullNode = $nullNode;
}
}