for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Linio\Component\RuleEngine\Ast;
class StackedExpressionNode extends Node
{
/**
* @var Node[]
*/
protected array $stack = [];
* @param Node[] $stack
public function __construct(array $stack)
$this->stack = $stack;
}
public function evaluate()
foreach ($this->stack as $stack) {
$stack->evaluate();