class TraversableObject

An object which implements \IteratorAggregate.

Hierarchy

  • class \Drupal\jsonapi_test_data_type\TraversableObject implements \Drupal\jsonapi_test_data_type\IteratorAggregate

Expanded class hierarchy of TraversableObject

2 files declare their use of TraversableObject
SerializerTest.php in core/modules/jsonapi/tests/src/Kernel/Serializer/SerializerTest.php
TraversableObjectNormalizer.php in core/modules/jsonapi/tests/modules/jsonapi_test_data_type/src/Normalizer/TraversableObjectNormalizer.php

File

core/modules/jsonapi/tests/modules/jsonapi_test_data_type/src/TraversableObject.php, line 10

Namespace

Drupal\jsonapi_test_data_type
View source
class TraversableObject implements \IteratorAggregate {
  
  /**
   * The test data.
   *
   * @var string
   */
  public $property = "value";
  
  /**
   * {@inheritdoc}
   */
  public function getIterator() : \ArrayIterator {
    return new \ArrayIterator();
  }

}

Members

Title Sort descending Modifiers Object type Summary
TraversableObject::$property public property The test data.
TraversableObject::getIterator public function

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.