Exemplo n.º 1
0
 /**
  * Get value (will call getter )
  * @param string $key
  * @param mixed $defaultValue
  * @return mixed
  * @throws \InvalidArgumentException
  */
 public function get($key, $defaultValue = null)
 {
     $key = $this->_getKey($key);
     if (!is_string($key)) {
         throw new \InvalidArgumentException("key must be a string");
     }
     if (!$key) {
         return null;
     }
     return parent::get($key, $defaultValue);
 }