HEX
Server: LiteSpeed
System: Linux d8 4.18.0-553.121.1.lve.el8.x86_64 #1 SMP Thu Apr 30 16:40:41 UTC 2026 x86_64
User: wbwebdes (3015)
PHP: 8.1.31
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/wbwebdes/domains/files.wb-cloud.nl/public_html/apps/photos/vendor/hexogen/kdtree/src/Node.php
<?php


namespace Hexogen\KDTree;

use Hexogen\KDTree\Interfaces\NodeInterface;
use Hexogen\KDTree\Interfaces\ItemInterface;

class Node implements NodeInterface
{
    /**
     * @var ItemInterface
     */
    private $item;

    /**
     * @var NodeInterface|null
     */
    private $left;

    /**
     * @var NodeInterface|null
     */
    private $right;

    /**
     * Node constructor.
     * @param ItemInterface $item
     */
    public function __construct(ItemInterface $item)
    {
        $this->item = $item;
        $this->left = null;
        $this->right = null;
    }

    /**
     * @return ItemInterface get item from the node
     */
    public function getItem() : ItemInterface
    {
        return $this->item;
    }

    /**
     * @param NodeInterface $node set right node
     */
    public function setRight(NodeInterface $node): void
    {
        $this->right = $node;
    }

    /**
     * @param NodeInterface $node set left node
     */
    public function setLeft(NodeInterface $node): void
    {
        $this->left = $node;
    }

    /**
     * @return NodeInterface|null get right node
     */
    public function getRight(): ?NodeInterface
    {
        return $this->right;
    }

    /**
     * @return NodeInterface|null get left node
     */
    public function getLeft(): ?NodeInterface
    {
        return $this->left;
    }
}