open-orchestra/open-orchestra-model-interface

View on GitHub
ModelInterface/Event/RedirectionEvent.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace OpenOrchestra\ModelInterface\Event;

use OpenOrchestra\ModelInterface\Model\RedirectionInterface;
use Symfony\Component\EventDispatcher\Event;

/**
 * Class RedirectionEvent
 */
class RedirectionEvent extends Event
{
    protected $redirection;

    /**
     * @param RedirectionInterface $redirection
     */
    public function __construct(RedirectionInterface $redirection)
    {
        $this->redirection = $redirection;
    }

    /**
     * @return RedirectionInterface
     */
    public function getRedirection()
    {
        return $this->redirection;
    }
}