示例#1
0
文件: Map.php 项目: staabm/incoming
 /**
  * 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);
 }
示例#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);
 }