class TestComplexData in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/serialization/tests/src/Unit/Normalizer/ComplexDataNormalizerTest.php \Drupal\Tests\serialization\Unit\Normalizer\TestComplexData
Test class implementing ComplexDataInterface and IteratorAggregate.
Hierarchy
- class \Drupal\Tests\serialization\Unit\Normalizer\TestComplexData implements \Drupal\Tests\serialization\Unit\Normalizer\IteratorAggregate, ComplexDataInterface
Expanded class hierarchy of TestComplexData
File
- core/
modules/ serialization/ tests/ src/ Unit/ Normalizer/ ComplexDataNormalizerTest.php, line 77 - Contains \Drupal\Tests\serialization\Unit\Normalizer\ComplexDataNormalizerTest.
Namespace
Drupal\Tests\serialization\Unit\NormalizerView source
class TestComplexData implements \IteratorAggregate, ComplexDataInterface {
private $values;
public function __construct(array $values = []) {
$this->values = $values;
}
public function getIterator() {
return new \ArrayIterator($this->values);
}
public function applyDefaultValue($notify = TRUE) {
}
public static function createInstance($definition, $name = NULL, TraversableTypedDataInterface $parent = NULL) {
}
public function get($property_name) {
}
public function getConstraints() {
}
public function getDataDefinition() {
}
public function getName() {
}
public function getParent() {
}
public function getProperties($include_computed = FALSE) {
}
public function getPropertyPath() {
}
public function getRoot() {
}
public function getString() {
}
public function getValue() {
}
public function isEmpty() {
}
public function onChange($name) {
}
public function set($property_name, $value, $notify = TRUE) {
}
public function setContext($name = NULL, TraversableTypedDataInterface $parent = NULL) {
}
public function setValue($value, $notify = TRUE) {
}
public function toArray() {
}
public function validate() {
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TestComplexData:: |
private | property | ||
TestComplexData:: |
public | function |
Applies the default value. Overrides TypedDataInterface:: |
|
TestComplexData:: |
public static | function |
Constructs a TypedData object given its definition and context. Overrides TypedDataInterface:: |
|
TestComplexData:: |
public | function |
Gets a property object. Overrides ComplexDataInterface:: |
|
TestComplexData:: |
public | function |
Gets a list of validation constraints. Overrides TypedDataInterface:: |
|
TestComplexData:: |
public | function |
Gets the data definition. Overrides TypedDataInterface:: |
|
TestComplexData:: |
public | function | ||
TestComplexData:: |
public | function |
Returns the name of a property or item. Overrides TypedDataInterface:: |
|
TestComplexData:: |
public | function |
Returns the parent data structure; i.e. either complex data or a list. Overrides TypedDataInterface:: |
|
TestComplexData:: |
public | function |
Gets an array of property objects. Overrides ComplexDataInterface:: |
|
TestComplexData:: |
public | function |
Returns the property path of the data. Overrides TypedDataInterface:: |
|
TestComplexData:: |
public | function |
Returns the root of the typed data tree. Overrides TypedDataInterface:: |
|
TestComplexData:: |
public | function |
Returns a string representation of the data. Overrides TypedDataInterface:: |
|
TestComplexData:: |
public | function |
Gets the data value. Overrides TypedDataInterface:: |
|
TestComplexData:: |
public | function |
Determines whether the data structure is empty. Overrides ComplexDataInterface:: |
|
TestComplexData:: |
public | function |
React to changes to a child property or item. Overrides TraversableTypedDataInterface:: |
|
TestComplexData:: |
public | function |
Sets a property value. Overrides ComplexDataInterface:: |
|
TestComplexData:: |
public | function |
Sets the context of a property or item via a context aware parent. Overrides TypedDataInterface:: |
|
TestComplexData:: |
public | function |
Sets the data value. Overrides TypedDataInterface:: |
|
TestComplexData:: |
public | function |
Returns an array of all property values. Overrides ComplexDataInterface:: |
|
TestComplexData:: |
public | function |
Validates the currently set data value. Overrides TypedDataInterface:: |
|
TestComplexData:: |
public | function |