public function getValue() { if ($this->hasFieldType()) { return $this->getFieldType()->getValue(); } else { return $this->tempValue; } }