367 lines
6.7 KiB
PHP
367 lines
6.7 KiB
PHP
<?php
|
|
|
|
namespace Cadoles\PortalBundle\Entity;
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
use Doctrine\Common\Collections\ArrayCollection;
|
|
use Symfony\Component\Validator\Constraints as Assert;
|
|
|
|
/**
|
|
* Projecttask
|
|
*
|
|
* @ORM\Entity
|
|
* @ORM\Table(name="projecttask")
|
|
* @ORM\Entity(repositoryClass="Cadoles\PortalBundle\Repository\ProjecttaskRepository")
|
|
* @ORM\HasLifecycleCallbacks
|
|
*/
|
|
class Projecttask
|
|
{
|
|
/**
|
|
* @var integer
|
|
*
|
|
* @ORM\Column(name="id", type="integer")
|
|
* @ORM\Id
|
|
* @ORM\GeneratedValue(strategy="AUTO")
|
|
*/
|
|
private $id;
|
|
|
|
/**
|
|
* @var string
|
|
*
|
|
* @ORM\Column(name="name", type="string", length=100)
|
|
*/
|
|
private $name;
|
|
|
|
/**
|
|
* @var string
|
|
*
|
|
* @ORM\Column(name="description", type="text", nullable=true)
|
|
*/
|
|
private $description;
|
|
|
|
/**
|
|
* @ORM\Column(name="submit", type="datetime")
|
|
*/
|
|
private $submit;
|
|
|
|
/**
|
|
* @ORM\Column(name="priority", type="integer")
|
|
*/
|
|
private $priority;
|
|
|
|
/**
|
|
* @ORM\Column(name="end", type="datetime", nullable=true)
|
|
*/
|
|
private $end;
|
|
|
|
/**
|
|
* @ORM\Column(name="percentage", type="integer")
|
|
*/
|
|
private $percentage;
|
|
|
|
/**
|
|
* @ORM\ManyToOne(targetEntity="Cadoles\CoreBundle\Entity\User", inversedBy="projecttasks")
|
|
* @ORM\JoinColumn(nullable=true)
|
|
*/
|
|
private $user;
|
|
|
|
/**
|
|
* @ORM\ManyToOne(targetEntity="Cadoles\CoreBundle\Entity\User", inversedBy="projectownertasks")
|
|
* @ORM\JoinColumn(nullable=false)
|
|
*/
|
|
private $owner;
|
|
|
|
/**
|
|
* @ORM\ManyToOne(targetEntity="Cadoles\PortalBundle\Entity\Project", inversedBy="projecttasks")
|
|
* @ORM\JoinColumn(nullable=false)
|
|
*/
|
|
private $project;
|
|
|
|
/**
|
|
* @ORM\ManyToOne(targetEntity="Cadoles\PortalBundle\Entity\Projecttasktag", inversedBy="projecttasks")
|
|
* @ORM\JoinColumn(nullable=true)
|
|
*/
|
|
private $projecttasktag;
|
|
|
|
/**
|
|
* @ORM\ManyToOne(targetEntity="Cadoles\PortalBundle\Entity\Projecttaskstatus", inversedBy="projecttasks")
|
|
* @ORM\JoinColumn(nullable=true)
|
|
*/
|
|
private $projecttaskstatus;
|
|
|
|
/**
|
|
* Get id
|
|
*
|
|
* @return integer
|
|
*/
|
|
public function getId()
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
/**
|
|
* Set name
|
|
*
|
|
* @param string $name
|
|
*
|
|
* @return Projecttask
|
|
*/
|
|
public function setName($name)
|
|
{
|
|
$this->name = $name;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get name
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getName()
|
|
{
|
|
return $this->name;
|
|
}
|
|
|
|
/**
|
|
* Set description
|
|
*
|
|
* @param string $description
|
|
*
|
|
* @return Projecttask
|
|
*/
|
|
public function setDescription($description)
|
|
{
|
|
$this->description = $description;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get description
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getDescription()
|
|
{
|
|
return $this->description;
|
|
}
|
|
|
|
/**
|
|
* Set submit
|
|
*
|
|
* @param \DateTime $submit
|
|
*
|
|
* @return Projecttask
|
|
*/
|
|
public function setSubmit($submit)
|
|
{
|
|
$this->submit = $submit;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get submit
|
|
*
|
|
* @return \DateTime
|
|
*/
|
|
public function getSubmit()
|
|
{
|
|
return $this->submit;
|
|
}
|
|
|
|
/**
|
|
* Set user
|
|
*
|
|
* @param \Cadoles\CoreBundle\Entity\User $user
|
|
*
|
|
* @return Projecttask
|
|
*/
|
|
public function setUser(\Cadoles\CoreBundle\Entity\User $user = null)
|
|
{
|
|
$this->user = $user;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get user
|
|
*
|
|
* @return \Cadoles\CoreBundle\Entity\User
|
|
*/
|
|
public function getUser()
|
|
{
|
|
return $this->user;
|
|
}
|
|
|
|
/**
|
|
* Set project
|
|
*
|
|
* @param \Cadoles\PortalBundle\Entity\Project $project
|
|
*
|
|
* @return Projecttask
|
|
*/
|
|
public function setProject(\Cadoles\PortalBundle\Entity\Project $project)
|
|
{
|
|
$this->project = $project;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get project
|
|
*
|
|
* @return \Cadoles\PortalBundle\Entity\Project
|
|
*/
|
|
public function getProject()
|
|
{
|
|
return $this->project;
|
|
}
|
|
|
|
/**
|
|
* Set owner
|
|
*
|
|
* @param \Cadoles\CoreBundle\Entity\User $owner
|
|
*
|
|
* @return Projecttask
|
|
*/
|
|
public function setOwner(\Cadoles\CoreBundle\Entity\User $owner)
|
|
{
|
|
$this->owner = $owner;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get owner
|
|
*
|
|
* @return \Cadoles\CoreBundle\Entity\User
|
|
*/
|
|
public function getOwner()
|
|
{
|
|
return $this->owner;
|
|
}
|
|
|
|
|
|
/**
|
|
* Set projecttasktag
|
|
*
|
|
* @param \Cadoles\PortalBundle\Entity\Projecttasktag $projecttasktag
|
|
*
|
|
* @return Projecttask
|
|
*/
|
|
public function setProjecttasktag(\Cadoles\PortalBundle\Entity\Projecttasktag $projecttasktag = null)
|
|
{
|
|
$this->projecttasktag = $projecttasktag;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get projecttasktag
|
|
*
|
|
* @return \Cadoles\PortalBundle\Entity\Projecttasktag
|
|
*/
|
|
public function getProjecttasktag()
|
|
{
|
|
return $this->projecttasktag;
|
|
}
|
|
|
|
/**
|
|
* Set projecttaskstatus
|
|
*
|
|
* @param \Cadoles\PortalBundle\Entity\Projecttaskstatus $projecttaskstatus
|
|
*
|
|
* @return Projecttask
|
|
*/
|
|
public function setProjecttaskstatus(\Cadoles\PortalBundle\Entity\Projecttaskstatus $projecttaskstatus = null)
|
|
{
|
|
$this->projecttaskstatus = $projecttaskstatus;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get projecttaskstatus
|
|
*
|
|
* @return \Cadoles\PortalBundle\Entity\Projecttaskstatus
|
|
*/
|
|
public function getProjecttaskstatus()
|
|
{
|
|
return $this->projecttaskstatus;
|
|
}
|
|
|
|
/**
|
|
* Set priority
|
|
*
|
|
* @param integer $priority
|
|
*
|
|
* @return Projecttask
|
|
*/
|
|
public function setPriority($priority)
|
|
{
|
|
$this->priority = $priority;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get priority
|
|
*
|
|
* @return integer
|
|
*/
|
|
public function getPriority()
|
|
{
|
|
return $this->priority;
|
|
}
|
|
|
|
/**
|
|
* Set end
|
|
*
|
|
* @param \DateTime $end
|
|
*
|
|
* @return Projecttask
|
|
*/
|
|
public function setEnd($end)
|
|
{
|
|
$this->end = $end;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get end
|
|
*
|
|
* @return \DateTime
|
|
*/
|
|
public function getEnd()
|
|
{
|
|
return $this->end;
|
|
}
|
|
|
|
/**
|
|
* Set percentage
|
|
*
|
|
* @param integer $percentage
|
|
*
|
|
* @return Projecttask
|
|
*/
|
|
public function setPercentage($percentage)
|
|
{
|
|
$this->percentage = $percentage;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Get percentage
|
|
*
|
|
* @return integer
|
|
*/
|
|
public function getPercentage()
|
|
{
|
|
return $this->percentage;
|
|
}
|
|
}
|