/** * @param bool $asKey * @return string */ public function getType($asKey = false) { if ($asKey) { return $this->type; } return $this->types->getType($this->type); }