public function getName() { if ($this->group) { return $this->group . '-' . $this->name; } else { return $this->name; } }