public static function for_name($name, $action = 'set') { return new static(sprintf('Cannot %2$s "%1$s". Manipulating a property is not allowed.', $name, $action)); }
/** * Removes the property with the given name. * * Removing properties is not allowed. * * @since 3.0.0 * * @param string $name The name of a property. * * @return void * * @throws PropertyManipulationNotAllowedException */ public function offsetUnset($name) { throw PropertyManipulationNotAllowedException::for_name($name, 'unset'); }