src/Value/UserActivities/HoldCollection.php
public static function fromXml(\DOMNodeList $xml)
    {
        $items = array();
        foreach ($xml as $xmlTag) {
            $items[] = Hold::fromXml($xmlTag);
        }
        return new static($items);
    }
public static function fromXml(\DOMNodeList $xml)
    {
        $items = array();
        foreach ($xml as $xmlTag) {
            $items[] = Hold::fromXml($xmlTag);
        }
        return new static($items);
    }
public static function fromXml ( \ DOMNodeList $ xml ) { $ items = array ( ) ; foreach ( $ xml as $ xmlTag ) { $ items [ ] = Hold :: fromXml ( $ xmlTag ) ; } return new static ( $ items ) ; }
Builds a HoldCollection object from XML.

@param \DOMNodeList $xml
The list of xml tags representing the holds.

@return HoldCollection
A HoldCollection object.
Builds a HoldCollection object from XML .