public function secure($level)
    {
        if ($level < 1 || $level > 3) {
            throw new Exception('Invalid security level', 2);
        }

        $this->levelSecure = (int) $level;

        return $this;
    }
public function secure($level)
    {
        if ($level < 1 || $level > 3) {
            throw new Exception('Invalid security level', 2);
        }

        $this->levelSecure = (int) $level;

        return $this;
    }
public function secure ( $ level ) { if ( $ level < 1 || $ level > 3 ) { throw new Exception ( 'Invalid security level' , 2 ) ; } $ this -> levelSecure = ( int ) $ level ; return $ this ; }
Access only with HTTPS, or only HTTP, or both

@param int $level
@throws \Inphinit\Experimental\Exception
@return \Inphinit\Experimental\Routing\Group
Access only with HTTPS or only HTTP or both