original_string: public static function fromXml(\DOMNodeList $xml)
      {
          $items = array();
          foreach ($xml as $xmlTag) {
              $items[] = Expense::fromXml($xmlTag);
          }
          return new static($items);
      }
code: public static function fromXml(\DOMNodeList $xml)
      {
          $items = array();
          foreach ($xml as $xmlTag) {
              $items[] = Expense::fromXml($xmlTag);
          }
          return new static($items);
      }
code_tokens: public static function fromXml ( \ DOMNodeList $ xml ) { $ items = array ( ) ; foreach ( $ xml as $ xmlTag ) { $ items [ ] = Expense :: fromXml ( $ xmlTag ) ; } return new static ( $ items ) ; }
docstring: Builds a ExpenseCollection object from XML.
  
  @param \DOMNodeList $xml
  The list of xml tags representing the expenses.
  
  @return ExpenseCollection
  A ExpenseCollection object
docstring_tokens: Builds a ExpenseCollection object from XML .