Skip to content

Commit

Permalink
Add public function to return resourceName (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahmoudz authored and freekmurze committed Sep 8, 2017
1 parent 14c0025 commit d54686c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Fractal.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down

0 comments on commit d54686c

Please sign in to comment.