krixon/rules

View on GitHub
src/Ast/NegationNode.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Krixon\Rules\Ast;

class NegationNode implements Node
{
    private $negated;


    public function __construct(Node $negated)
    {
        $this->negated = $negated;
    }


    public function accept(Visitor $visitor) : void
    {
        $visitor->visitNegation($this);
    }


    public function negated() : Node
    {
        return $this->negated;
    }
}