Skip to content

Commit

Permalink
scrutinzer fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
electricjones committed Sep 6, 2015
1 parent 2eef8bd commit 125652b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Contracts/ManagesItemsInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,13 @@ public function has($alias);
*/
public function set($alias, $item = null);

/**
* Return an item if it exists
* @param $alias
* @return \Michaels\Manager\Messages\NoItemFoundMessage|mixed
*/
public function getIfExists($alias);

/**
* Deletes an item
*
Expand Down
2 changes: 2 additions & 0 deletions src/Traits/DependsOnManagesItemsTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ abstract public function get($alias, $fallback = null);

abstract public function getAll();

abstract public function getIfExists($alias);

abstract public function all();

abstract public function exists($alias);
Expand Down

0 comments on commit 125652b

Please sign in to comment.