Leuchtfeuer/auth0-for-typo3

View on GitHub
Classes/Event/RedirectPreProcessingEvent.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

declare(strict_types=1);

/*
 * This file is part of the "Auth0" extension for TYPO3 CMS.
 *
 * For the full copyright and license information, please read the
 * LICENSE.txt file that was distributed with this source code.
 *
 * Florian Wessels <f.wessels@Leuchtfeuer.com>, Leuchtfeuer Digital Marketing
 */

namespace Leuchtfeuer\Auth0\Event;

use Leuchtfeuer\Auth0\Service\RedirectService;

final class RedirectPreProcessingEvent
{
    private $redirectUri;

    private $redirectService;

    public function __construct(string $redirectUri, RedirectService $redirectService)
    {
        $this->redirectUri = $redirectUri;
        $this->redirectService = $redirectService;
    }

    public function getRedirectUri(): string
    {
        return $this->redirectUri;
    }

    public function setRedirectUri(string $redirectUri): void
    {
        $this->redirectUri = $redirectUri;
    }

    public function getRedirectService(): RedirectService
    {
        return $this->redirectService;
    }
}