Files
chill-bundles/src/Bundle/ChillTaskBundle/Event/TaskEvent.php
2022-10-05 16:55:13 +02:00

44 lines
780 B
PHP

<?php
declare(strict_types=1);
/*
* Chill is a software for social workers
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Chill\TaskBundle\Event;
use Chill\TaskBundle\Entity\AbstractTask;
use Symfony\Component\EventDispatcher\Event;
class TaskEvent extends Event
{
public const PERSIST = 'chill_task.task_persist';
/**
* @var AbstractTask
*/
protected $task;
public function __construct(AbstractTask $task)
{
$this->task = $task;
}
public function getTask(): AbstractTask
{
return $this->task;
}
public function setTask(AbstractTask $task)
{
$this->task = $task;
return $this;
}
}