public function ProxyItem::__set in Purge 8.3
Set a writable property.
Parameters
string $name: The name of the property, can be 'item_id' or 'created'.
mixed $value: The value of the property you want to set.
Throws
\Drupal\purge\Plugin\Purge\Queue\Exception\InvalidPropertyException Thrown when the requested property isn't 'item_id' or 'created'.
Overrides ProxyItemInterface::__set
See also
http://php.net/manual/en/language.oop5.overloading.php#object.set
File
- src/
Plugin/ Purge/ Queue/ ProxyItem.php, line 112
Class
- ProxyItem
- Provides a proxy item.
Namespace
Drupal\purge\Plugin\Purge\QueueCode
public function __set($name, $value) {
if (!isset($this->properties[$name])) {
throw new InvalidPropertyException("The property '{$name}' does not exist.");
}
if (!$this->properties[$name]) {
throw new InvalidPropertyException("The property '{$name}' is read-only.");
}
$this->buffer
->setProperty($this->invalidation, $name, $value);
}