class WebformEvalMathStack in Webform Calculator 7.2
Hierarchy
- class \WebformEvalMathStack
Expanded class hierarchy of WebformEvalMathStack
File
- ./
matheval.class.php, line 368
View source
class WebformEvalMathStack {
public $stack = array();
public $count = 0;
public function push($val) {
$this->stack[$this->count] = $val;
$this->count++;
}
public function pop() {
if ($this->count > 0) {
$this->count--;
return $this->stack[$this->count];
}
return null;
}
public function last($n = 1) {
if (isset($this->stack[$this->count - $n])) {
return $this->stack[$this->count - $n];
}
}
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
WebformEvalMathStack:: |
public | property | ||
WebformEvalMathStack:: |
public | property | ||
WebformEvalMathStack:: |
public | function | ||
WebformEvalMathStack:: |
public | function | ||
WebformEvalMathStack:: |
public | function |