public function getName($index = null) { $type = $this->getType($index); return is_int($type) ? token_name($type) : null; }