open-orchestra/open-orchestra-model-interface

View on GitHub
ModelInterface/Event/StatusEvent.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace OpenOrchestra\ModelInterface\Event;

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

/**
 * Class StatusEvent
 */
class StatusEvent extends Event
{
    protected $status;

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

    /**
     * @return StatusInterface
     */
    public function getStatus()
    {
        return $this->status;
    }
}