class TraversableObject
Same name in other branches
- 8.9.x core/modules/jsonapi/tests/modules/jsonapi_test_data_type/src/TraversableObject.php \Drupal\jsonapi_test_data_type\TraversableObject
- 10 core/modules/jsonapi/tests/modules/jsonapi_test_data_type/src/TraversableObject.php \Drupal\jsonapi_test_data_type\TraversableObject
- 11.x core/modules/jsonapi/tests/modules/jsonapi_test_data_type/src/TraversableObject.php \Drupal\jsonapi_test_data_type\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 8
Namespace
Drupal\jsonapi_test_data_typeView source
class TraversableObject implements \IteratorAggregate {
public $property = "value";
/**
* {@inheritdoc}
*/
public function getIterator() {
return new \ArrayIterator();
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
TraversableObject::$property | public | property | |
TraversableObject::getIterator | public | function |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.