public function getName() { if ($this->name !== null) { return $this->name; } if ($this->componentClass === null) { return null; } $component = $this->getComponent(); return $this->name = ComponentHelpers::getComponentName($component); }