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