Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Commit

Permalink
Update Slice.php
Browse files Browse the repository at this point in the history
  • Loading branch information
rez1dent3 authored Apr 28, 2017
1 parent 5293954 commit 5932019
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Slice/Slice.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,16 @@ public function getData($offset, $default = null)
return Arr::get($this->data, $offset, $default);
}

/**
* @param string $offset
*
* @return Slice
*/
public function getSlice($offset)
{
return $this->make($this->getRequired($offset));
}

/**
* @param array $data
*
Expand Down

0 comments on commit 5932019

Please sign in to comment.