You are here

class ParserResult in Feeds 8.3

The result of a parsing stage.

Hierarchy

Expanded class hierarchy of ParserResult

10 files declare their use of ParserResult
AfterParseBaseTest.php in tests/src/Unit/EventSubscriber/AfterParseBaseTest.php
CsvParser.php in src/Feeds/Parser/CsvParser.php
FeedRefreshTest.php in tests/src/Unit/Plugin/QueueWorker/FeedRefreshTest.php
FeedsExecutableTest.php in tests/src/Unit/FeedsExecutableTest.php
LazySubscriberTest.php in tests/src/Unit/EventSubscriber/LazySubscriberTest.php

... See full list

File

src/Result/ParserResult.php, line 10

Namespace

Drupal\feeds\Result
View source
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;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
ParserResult::addItem public function Adds an item to the result. Overrides ParserResultInterface::addItem
ParserResult::addItems public function Adds a list of items to the result. Overrides ParserResultInterface::addItems