public function getType() { $typeList = $this->getTypeList(); return isset($typeList[$this->type]) ? $typeList[$this->type] : $this->type; }