/** * @param CultureFeed_SimpleXMLElement $xml * @return CultureFeed_Uitpas_Passholder_ExecuteEventActionsResult */ public static function createFromXML(CultureFeed_SimpleXMLElement $xml) { $result = new self(); $result->passholder = CultureFeed_Uitpas_Passholder::createFromXML($xml->xpath('passHolder', false)); foreach ($xml->xpath('actions/action') as $action) { $result->addActionFromXML($action); } return $result; }