public function getSelectedValue() { $index = $this->getSelectedIndex(); return $index >= 0 ? $this->getItems()->itemAt($index)->getValue() : ''; }