parts = $parts; } /** * @param string[] $parts * @return self */ public static function create(array $parts): self { return new self('The schemaLocation attribute does not have even parts', $parts); } /** * Return the parts found on the schemaLocations attribute * * @return string[] */ public function getParts(): array { return $this->parts; } /** * Return the parts found on the schemaLocations attribute separated by a space * * @return string */ public function getPartsAsString(): string { return implode(' ', $this->parts); } }