31 parent::__construct(
$name, $children, null);
52 switch ($this->failMode) {
53 case 'updatepropsfalse' :
return false;
54 case 'updatepropsarray' :
56 foreach ($updateProperties as $k => $v)
$r[$k] = 402;
58 case 'updatepropsobj' :
59 return new \STDClass();
83 $returnedProperties = [];
84 foreach ($requestedProperties as $requestedProperty) {
85 if (isset($this->properties[$requestedProperty])) {
86 $returnedProperties[$requestedProperty] =
87 $this->properties[$requestedProperty];
90 return $returnedProperties;
This class represents a set of properties that are going to be updated.
A node specifically for testing property-related operations.
getProperties($requestedProperties)
Returns a list of properties for this nodes.
propPatch(PropPatch $proppatch)
Updates properties on this node.
__construct($name, array $children, array $properties=[])
Creates the object.
handleRemaining(callable $callback)
Call this function if you wish to handle all properties that haven't been handled by anything else ye...