Skip to content

Commit

Permalink
Add getter for attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
datashaman committed Apr 18, 2017
1 parent a046706 commit cdfa6d2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use ArrayAccess;
use Illuminate\Pagination\LengthAwarePaginator;
use Illuminate\Support\Collection;

class Response implements ArrayAccess
{
Expand Down Expand Up @@ -96,4 +97,12 @@ public function suggestions()
{
return array_has($this->response(), 'suggest') ? new Response\Suggestions(array_get($this->response(), 'suggest')) : null;
}

/**
* @return Collection
*/
public function getAttributes()
{
return $this->attributes;
}
}

0 comments on commit cdfa6d2

Please sign in to comment.