Ejemplo n.º 1
0
 /**
  * Magic "__unset" method
  *
  * @internal
  * @param string $key The key to unset
  * @throws ReadOnlyException External modification is not allowed
  * @return void
  */
 public function __unset($key)
 {
     throw ReadOnlyException::forAttribute($key);
 }
Ejemplo n.º 2
0
 /**
  * Remove the item at the given offset
  *
  * @internal
  * @param mixed $offset The offset to unset
  * @throws ReadOnlyException External modification is not allowed
  * @return void
  */
 public function offsetUnset($offset)
 {
     throw ReadOnlyException::forAttribute($offset);
 }