1: <?php
2:
3: namespace BN\Compiler\Postfix\Operands;
4:
5: use BN\Collections\Stack;
6:
7: class AtLeastN extends Operands
8: {
9: protected function popOperands(Stack $stack)
10: {
11: $operands = array();
12: while (!$stack->isEmpty()) {
13: $operands[] = $stack->pop();
14: }
15: return $operands;
16: }
17:
18: protected function isOperandsCountValid($operandsCount)
19: {
20: return $operandsCount >= $this->operandsCount;
21: }
22: }
23: