Code Duplication    Length = 8-8 lines in 2 locations

Routing/Router.php 2 locations

@@ 83-90 (lines=8) @@
80
     *
81
     * @throws \InvalidArgumentException
82
     */
83
    public function setOption($key, $value)
84
    {
85
        if (!array_key_exists($key, $this->options)) {
86
            throw new \InvalidArgumentException(sprintf('The Router does not support the "%s" option.', $key));
87
        }
88
89
        $this->options[$key] = $value;
90
    }
91
92
    /**
93
     * Gets an option value.
@@ 101-108 (lines=8) @@
98
     *
99
     * @throws \InvalidArgumentException
100
     */
101
    public function getOption($key)
102
    {
103
        if (!array_key_exists($key, $this->options)) {
104
            throw new \InvalidArgumentException(sprintf('The Router does not support the "%s" option.', $key));
105
        }
106
107
        return $this->options[$key];
108
    }
109
110
    /**
111
     * Sets options.