You are here

interface ParserResultInterface in Feeds 8.3

The result of a parsing stage.

Hierarchy

  • interface \Drupal\feeds\Result\ParserResultInterface extends \Drupal\feeds\Result\Iterator \Drupal\feeds\Result\ArrayAccess \Drupal\feeds\Result\Countable

Expanded class hierarchy of ParserResultInterface

All classes that implement ParserResultInterface

1 file declares its use of ParserResultInterface
ParseEvent.php in src/Event/ParseEvent.php

File

src/Result/ParserResultInterface.php, line 10

Namespace

Drupal\feeds\Result
View source
interface ParserResultInterface extends \Iterator, \ArrayAccess, \Countable {

  /**
   * Adds an item to the result.
   *
   * @param \Drupal\feeds\Feeds\Item\ItemInterface $item
   *   A parsed feed item.
   *
   * @return $this
   */
  public function addItem(ItemInterface $item);

  /**
   * Adds a list of items to the result.
   *
   * @param \Drupal\feeds\Feeds\Item\ItemInterface[] $items
   *   A list of feed items.
   *
   * @return $this
   */
  public function addItems(array $items);

}

Members

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