public function getValueOrDefault($key, $default = null) {
        if (!empty($this->values[$key])) {
            return $this->values[$key];
        }
        elseif (!empty($this->defaults[$key])) {
            return $this->defaults[$key];
        }
        else {
            return $default;
        }
    }
public function getValueOrDefault($key, $default = null) {
        if (!empty($this->values[$key])) {
            return $this->values[$key];
        }
        elseif (!empty($this->defaults[$key])) {
            return $this->defaults[$key];
        }
        else {
            return $default;
        }
    }
public function getValueOrDefault ( $ key , $ default = null ) { if ( ! empty ( $ this -> values [ $ key ] ) ) { return $ this -> values [ $ key ] ; } elseif ( ! empty ( $ this -> defaults [ $ key ] ) ) { return $ this -> defaults [ $ key ] ; } else { return $ default ; } }
Get value or default.

@param string $key The key whose value is to try to get.
@param string $default Default value. Only if the value in the $defaults property is not found.

@return string
Get value or default .