Example #1
0
 public function offsetUnset($offset)
 {
     if (in_array($offset, ['role_id', 'name', 'type', 'default', 'permissions', 'users'])) {
         throw new NoPermissionsException("No permission to unset: " . $offset);
     }
     parent::offsetUnset($offset);
 }