public function get($key, $subKey = null)
    {
        if (!is_null($subKey) && (is_array($this->data[$key]))) {
            return $this->data[$key][$subKey];
        } else {
            return $this->data[$key];
        }
    }
public function get($key, $subKey = null)
    {
        if (!is_null($subKey) && (is_array($this->data[$key]))) {
            return $this->data[$key][$subKey];
        } else {
            return $this->data[$key];
        }
    }
public function get ( $ key , $ subKey = null ) { if ( ! is_null ( $ subKey ) && ( is_array ( $ this -> data [ $ key ] ) ) ) { return $ this -> data [ $ key ] [ $ subKey ] ; } else { return $ this -> data [ $ key ] ; } }
Gets value for specific key with optional subkey

@param string $key    The key to set value for
@param string $subKey The optional subKey to set value for

@return mixed
Gets value for specific key with optional subkey