class TraversableObject in JSON:API 8.2
Same name and namespace in other branches
- 8 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 tests/
src/ Kernel/ Serializer/ SerializerTest.php - TraversableObjectNormalizer.php in tests/
modules/ jsonapi_test_data_type/ src/ Normalizer/ TraversableObjectNormalizer.php
File
- 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
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TraversableObject:: |
public | property | ||
TraversableObject:: |
public | function |