for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Copyright © Thomas Klein, All rights reserved.
* See LICENSE bundled with this library for license details.
*/
declare(strict_types=1);
namespace LogicTree\Node;
abstract class AbstractNode implements NodeInterface
{
* @var null|CombineInterface
private $parent;
public function getParent(): ?CombineInterface
return $this->parent;
}
public function setParent(?CombineInterface $combine): NodeInterface
$this->parent = $combine;
return $this;
public function hasParent(): bool
return $this->parent !== null;