for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Copyright © 2018 Thomas Klein, All rights reserved.
* See LICENSE bundled with this library for license details.
*/
declare(strict_types=1);
namespace LogicTree\Node;
* Class AbstractCondition
abstract class AbstractNode implements NodeInterface
{
* @var null|\LogicTree\Node\CombineInterface
private $parent;
* {@inheritdoc}
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;