code: protected function validateItems(array $items, $type)
      {
          foreach ($items as $item) {
              $this->validateItem($item, $type);
          }
      }
docs: Validates an array of items
  
  @param array $items an array of items to be validated
  @param type