protected function save($model) { $method = $this->methods['save']; if (!method_exists($model, $method) || !is_callable([$model, $method])) { throw new SaveMethodNotFoundException(get_class($model), $method); } return $model->{$method}(); }