public function getNativeType($nativeType) { if (!isset($this->nativeTypes[$nativeType])) { throw new TypeException('Cannot get native type \'%s\': type is not supported', $nativeType); } return $this->nativeTypes[$nativeType]; }