Psr7Middlewares\Middleware\Uuid::version PHP Method

version() public method

Choose the Uuid version.
public version ( integer $version ) : self
$version integer 1, 3, 4 or 5
return self
    public function version($version)
    {
        if (!in_array($version, [1, 3, 4, 5])) {
            throw new \InvalidArgumentException('Only 1, 3, 4 and 5 versions are available');
        }
        $this->version = func_get_args();
        return $this;
    }