public function redirectVerified($code, $destination = null, $parameters = []): void
    {
        // first parameter is optional
        if (!is_numeric($code)) {
            $parameters = is_array($destination) ? $destination : array_slice(func_get_args(), 1);
            $destination = $code;
            $code = null;
        } elseif (!is_array($parameters)) {
            $parameters = array_slice(func_get_args(), 2);
        }

        /** @var Presenter $presenter */
        $presenter = $this->getPresenter();
        $link = $presenter->createRequest($this, $destination, $parameters, 'redirect');
        if ($presenter->getVerifier()->isLinkVerified($presenter->getLastCreatedRequest(), $this)) {
            $presenter->redirectUrl($link, $code);
        }
    }
public function redirectVerified($code, $destination = null, $parameters = []): void
    {
        // first parameter is optional
        if (!is_numeric($code)) {
            $parameters = is_array($destination) ? $destination : array_slice(func_get_args(), 1);
            $destination = $code;
            $code = null;
        } elseif (!is_array($parameters)) {
            $parameters = array_slice(func_get_args(), 2);
        }

        /** @var Presenter $presenter */
        $presenter = $this->getPresenter();
        $link = $presenter->createRequest($this, $destination, $parameters, 'redirect');
        if ($presenter->getVerifier()->isLinkVerified($presenter->getLastCreatedRequest(), $this)) {
            $presenter->redirectUrl($link, $code);
        }
    }
public function redirectVerified ( $ code , $ destination = null , $ parameters = [ ] ) : void { // first parameter is optional if ( ! is_numeric ( $ code ) ) { $ parameters = is_array ( $ destination ) ? $ destination : array_slice ( func_get_args ( ) , 1 ) ; $ destination = $ code ; $ code = null ; } elseif ( ! is_array ( $ parameters ) ) { $ parameters = array_slice ( func_get_args ( ) , 2 ) ; } /** @var Presenter $presenter */ $ presenter = $ this -> getPresenter ( ) ; $ link = $ presenter -> createRequest ( $ this , $ destination , $ parameters , 'redirect' ) ; if ( $ presenter -> getVerifier ( ) -> isLinkVerified ( $ presenter -> getLastCreatedRequest ( ) , $ this ) ) { $ presenter -> redirectUrl ( $ link , $ code ) ; } }
Redirects to destination if all the requirements are met.

@param int|string   $code
@param string|array $destination
@param mixed        $parameters
Redirects to destination if all the requirements are met .