for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace PhpUnitGen\Model\PropertyTrait;
use PhpUnitGen\Model\PropertyInterface\NodeInterface;
/**
* Trait NodeTrait.
*
* @author Paul Thébaud <[email protected]>.
* @copyright 2017-2018 Paul Thébaud <[email protected]>.
* @license https://opensource.org/licenses/MIT The MIT license.
* @link https://github.com/paul-thebaud/phpunit-generator
* @since Class available since Release 2.0.0.
*/
trait NodeTrait
{
* @var NodeInterface|null $parentNode The node parent.
protected $parentNode;
* @param NodeInterface|null $parentNode The new parent node to set.
public function setParentNode(?NodeInterface $parentNode): void
$this->parentNode = $parentNode;
}
* @return NodeInterface|null The parent node if it exists.
public function getParentNode(): ?NodeInterface
return $this->parentNode;