public function serialize()
    {
        return serialize([
            $this->path,
            $this->schemes,
            $this->methods,
            $this->defaults,
            $this->constraints,
            $this->parts,
            $this->compiled,
        ]);
    }