class Blocks extends XmlElement
{ /**
* @param Block[] $blocks
*/
private function __construct(protected array
$blocks) { } public static function fromXml(\DOMElement
$element): self
{ return new self(self::
parseBlocks($element));
} /**
* @return Block[]
*/
public function getBlocks(): array
{ return $this->blocks;
} private static function parseBlocks(\DOMElement
$element): array
{