Skip to content

Commit

Permalink
Support for has key
Browse files Browse the repository at this point in the history
  • Loading branch information
bajb committed Sep 9, 2014
1 parent be273b2 commit 430cc8b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Provider/ConfigSection.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,18 @@ public function getName()
return $this->_name;
}

/**
* Check to see if a config item exists within the configuration
*
* @param $key
*
* @return bool
*/
public function has($key)
{
return isset($this->_items[$key]);
}

/**
* Retrieve an item from the configuration
*
Expand Down

0 comments on commit 430cc8b

Please sign in to comment.