bundleId; } public function getDocumentClass() { return $this->documentClass; } public function getIdInsideBundle() { return $this->idInsideBundle; } public function getName($locale = null) { if ($locale) { if (isset($this->name[$locale])) { return $this->name[$locale]; } foreach ($this->name as $name) { if (!empty($name)) { return $name; } } return ''; } return $this->name; } public function setBundleId($id): self { $this->bundleId = $id; return $this; } public function setDocumentClass($documentClass): self { $this->documentClass = $documentClass; return $this; } public function setName($name): self { $this->name = $name; return $this; } }