public function setExtensions(array $extensions)
    {
        $this->_extensions = [];
        foreach ($extensions as $ext) {
            $this->_extensions[] = strtolower($ext);
        }

        return $this;
    }
public function setExtensions(array $extensions)
    {
        $this->_extensions = [];
        foreach ($extensions as $ext) {
            $this->_extensions[] = strtolower($ext);
        }

        return $this;
    }
public function setExtensions ( array $ extensions ) { $ this -> _extensions = [ ] ; foreach ( $ extensions as $ ext ) { $ this -> _extensions [ ] = strtolower ( $ ext ) ; } return $ this ; }
Set the supported extensions for this route.

@param array $extensions The extensions to set.
@return $this
Set the supported extensions for this route .