diff --git a/src/Fractal.php b/src/Fractal.php index 84bbf96..00c0d4b 100644 --- a/src/Fractal.php +++ b/src/Fractal.php @@ -442,6 +442,17 @@ public function getResource() return $resource; } + + /** + * Return the resourceName. + * + * @return string + */ + public function getResourceName() + { + return $this->resourceName; + } + /** * Convert the object into something JSON serializable. */