public function withPort(int $port): self
    {
        $newConstraints = $this->constraints;
        $newConstraints[self::CONSTRAINT_PORT] = $port;
        return new static($newConstraints);
    }
public function withPort(int $port): self
    {
        $newConstraints = $this->constraints;
        $newConstraints[self::CONSTRAINT_PORT] = $port;
        return new static($newConstraints);
    }
public function withPort ( int $ port ) : self { $ newConstraints = $ this -> constraints ; $ newConstraints [ self :: CONSTRAINT_PORT ] = $ port ; return new static ( $ newConstraints ) ; }
Create a new instance with the port constraint added

@param int $port The URI port to force, for example 80
@return UriConstraints
Create a new instance with the port constraint added