src/Application.php
public function param(string $name, $value = null)
    {
        if ($value === null) {
            return $this->params[$name] ?? null;
        }

        return $this->params[$name] = $value;
    }
public function param(string $name, $value = null)
    {
        if ($value === null) {
            return $this->params[$name] ?? null;
        }

        return $this->params[$name] = $value;
    }
public function param ( string $ name , $ value = null ) { if ( $ value === null ) { return $ this -> params [ $ name ] ?? null ; } return $ this -> params [ $ name ] = $ value ; }
Get param from router

@param string $name
@param mixed  $value

@return mixed|null
Get param from router