chill-bundles/Entity/AbstractTask.php
2018-04-13 22:16:40 +02:00

170 lines
2.6 KiB
PHP

<?php
namespace Chill\TaskBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Chill\MainBundle\Entity\User;
use Chill\PersonBundle\Entity\Person;
use Chill\MainBundle\Entity\Scope;
/**
* AbstractTask
*
* @ORM\MappedSuperclass()
*/
abstract class AbstractTask
{
/**
* @var string
*
* @ORM\Column(name="type", type="string", length=255)
*/
private $type;
/**
* @var json
*
* @ORM\Column(name="current_states", type="json")
*/
private $currentStates = '';
/**
* @var string
*
* @ORM\Column(name="title", type="text")
*/
private $title = '';
/**
* @var string
*
* @ORM\Column(name="description", type="text")
*/
private $description = '';
/**
*
* @var User
* @ORM\ManyToOne(
* targetEntity="\Chill\MainBundle\Entity\User"
* )
*/
private $assignee;
/**
*
* @var Person
* @ORM\ManyToOne(
* targetEntity="\Chill\PersonBundle\Entity\Person"
* )
*/
private $person;
/**
*
* @var Scope
* @ORM\ManyToOne(
* targetEntity="\Chill\MainBundle\Entity\Scope"
* )
*/
private $circle;
/**
* Set type
*
* @param string $type
*
* @return AbstractTask
*/
public function setType($type)
{
$this->type = $type;
return $this;
}
/**
* Get type
*
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* Set currentStates
*
* @param json $currentStates
*
* @return AbstractTask
*/
public function setCurrentStates($currentStates)
{
$this->currentStates = $currentStates;
return $this;
}
/**
* Get currentStates
*
* @return json
*/
public function getCurrentStates()
{
return $this->currentStates;
}
/**
* Set title
*
* @param string $title
*
* @return AbstractTask
*/
public function setTitle($title)
{
$this->title = $title;
return $this;
}
/**
* Get title
*
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* Set description
*
* @param string $description
*
* @return AbstractTask
*/
public function setDescription($description)
{
$this->description = $description;
return $this;
}
/**
* Get description
*
* @return string
*/
public function getDescription()
{
return $this->description;
}
}