feeds-8.x-3.0-alpha1/src/Result/ParserResult.php

src/Result/ParserResult.php
<?php

namespace Drupal\feeds\Result;

use Drupal\feeds\Feeds\Item\ItemInterface;

/**
 * The result of a parsing stage.
 */
class ParserResult extends \SplDoublyLinkedList implements ParserResultInterface {

  /**
   * {@inheritdoc}
   */
  public function addItem(ItemInterface $item) {
    $this->push($item);
    return $this;
  }

  /**
   * {@inheritdoc}
   */
  public function addItems(array $items) {
    foreach ($items as $item) {
      $this->push($item);
    }

    return $this;
  }

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc