/**
* @param array<int, CustomEvent> $data
*/
private function __construct(array
$data) { $this->customEvent =
$data;
} public static function fromXml(\DOMElement
$element): self
{ return new self(self::
parseFlowEvents($element));
} /**
* @return CustomEvent[]
*/
public function getCustomEvents(): array
{ return $this->customEvent;
} /**
* @return array<int, CustomEvent>
*/