mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 21:34:25 +00:00
72 lines
1.4 KiB
PHP
72 lines
1.4 KiB
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\Entity\Task;
|
|
|
|
use Chill\TaskBundle\Entity\SingleTask;
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
/**
|
|
* @ORM\Table(
|
|
* name="chill_task.single_task_place_event",
|
|
* indexes={
|
|
* @ORM\Index(
|
|
* name="transition_task_date",
|
|
* columns={"task_id", "transition", "datetime"}
|
|
* ),
|
|
* @ORM\Index(
|
|
* name="transition_task",
|
|
* columns={"task_id", "transition"}
|
|
* )
|
|
* })
|
|
* @ORM\Entity
|
|
*/
|
|
class SingleTaskPlaceEvent extends AbstractTaskPlaceEvent
|
|
{
|
|
/**
|
|
* @ORM\Column(name="id", type="integer")
|
|
* @ORM\Id
|
|
* @ORM\GeneratedValue(strategy="AUTO")
|
|
*/
|
|
private ?int $id = null;
|
|
|
|
/**
|
|
* @var SingleTask
|
|
* @ORM\ManyToOne(
|
|
* targetEntity="\Chill\TaskBundle\Entity\SingleTask",
|
|
* inversedBy="taskPlaceEvents"
|
|
* )
|
|
*/
|
|
protected ?\Chill\TaskBundle\Entity\SingleTask $task = null;
|
|
|
|
public function getTask(): SingleTask
|
|
{
|
|
return $this->task;
|
|
}
|
|
|
|
public function setTask(SingleTask $task)
|
|
{
|
|
$this->task = $task;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get id.
|
|
*
|
|
* @return int
|
|
*/
|
|
public function getId()
|
|
{
|
|
return $this->id;
|
|
}
|
|
}
|