public function getValueByName(string $name, $default = null)
    {
        if (isset($this->values[$name])) {
            return $this->parseType($this->values[$name]);
        }

        return $default;
    }
public function getValueByName(string $name, $default = null)
    {
        if (isset($this->values[$name])) {
            return $this->parseType($this->values[$name]);
        }

        return $default;
    }
public function getValueByName ( string $ name , $ default = null ) { if ( isset ( $ this -> values [ $ name ] ) ) { return $ this -> parseType ( $ this -> values [ $ name ] ) ; } return $ default ; }
returns a value by its name

Returns null if a value with given name does not exist or is not set.

@api
@param   string  $name
@param   mixed   $default  optional  value to return if value not set
@return  mixed
@since   1.7.0
returns a value by its name