_value = $value; self::$_stack[] = $value; } public function setDummy($value) { $this->_dummy = $value; return $this; } public function getValue() { return $this->_value; } public static function getStack() { return self::$_stack; } /** * Returns previous item from stack, used internally. */ protected static function _previousInStack() { $stackLength = count(self::$_stack); return self::$_stack[ ($stackLength - 2) ]; } }