public function getPureType() { $pos = mb_strpos($this->type, "("); if ($pos > 0) { return mb_substr($this->type, 0, $pos); } return $this->type; }