bundleId = $bundleId; $this->idInsideBundle = $idInsideBundle; } public function getBundleId() // ::class BundleClass (FQDN) { return $this->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 setDocumentClass($documentClass): self { $this->documentClass = $documentClass; return $this; } public function setName($name): self { $this->name = $name; return $this; } }