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