public function getTypes($region = null)
    {
        if (null === $region) {
            $ret = [];
            foreach ($this->matrix as $types) {
                $ret = array_merge($ret, $types);
            }

            return array_values(array_unique($ret));
        }

        return $this->matrix[$region];
    }