Skip to content
This repository has been archived by the owner on Aug 13, 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 6, 2017
1 parent 2f7e077 commit 240f61d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Slice/Slice.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,17 @@ public function getData($path, $default = null)
);
}

/**
* @param string $path
* @param mixed $default
*
* @return mixed
*/
public function atData($path, $default = null)
{
return $this->storage[$path] ?? $default;
}

/**
* @param string $path
*
Expand Down

0 comments on commit 240f61d

Please sign in to comment.