Overview

Namespaces

  • BN
    • Collections
    • Compiler
      • Grammar
      • Parser
        • Operator
        • Token
      • Postfix
        • Operands
        • Operator
        • Token
      • Scanner
        • Converter
      • Token
  • Demo
  • None

Classes

  • AtLeastN
  • FixedCount
  • Operands
  • OperandsSummary
  • Overview
  • Namespace
  • Class
  • Tree
 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: 
BN-PHP - Big Number data type for PHP API documentation generated by ApiGen 2.8.0