Alg_Stack

The Booster for WooCommerce Alg Stack class.

Defined (1)

The class is defined in the following location(s).

/includes/lib/PHPMathParser/Stack.php  
  1. class Alg_Stack { 
  2.  
  3. protected $data = array(); 
  4.  
  5. public function push($element) { 
  6. $this->data[] = $element; 
  7.  
  8. public function poke() { 
  9. return end($this->data); 
  10.  
  11. public function pop() { 
  12. return array_pop($this->data); 
  13.