protected function callBeforeSave($namespace, $group, $items) { $callback = $this->beforeSave[$namespace]; return call_user_func($callback, $this, $group, $items); }