<?php
namespace Cms\WorkflowsBundle\Entity;
use Cms\TenantBundle\Entity\TenantedEntity;
use DateTime;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Platform\SecurityBundle\Entity\Identity\Account;
use Doctrine\ORM\Mapping as ORM;
/**
* Class Workflow
* @package Cms\WorkflowsBundle\Entity
*
* @ORM\Entity(
* repositoryClass = "Cms\WorkflowsBundle\Doctrine\WorkflowRepository"
* )
* @ORM\Table(
* name = "cms__workflows_workflow"
* )
*/
class Workflow extends TenantedEntity {
/**
* @var string
*
* @ORM\Column(
* type = "string",
* nullable = true
* )
*/
protected $workflowName;
/**
* @var string
*
* @ORM\Column(
* type = "string",
* nullable = true
* )
*/
protected $workflowDescription;
/**
* @var boolean
*
* @ORM\Column(
* type = "boolean",
* nullable = false
* )
*/
protected $isActive = false;
/**
* @var Datetime
*
* @ORM\Column(
* type = "datetime",
* nullable = true
* )
*/
protected $originalActivationDate;
/**
* @var Datetime
*
* @ORM\Column(
* type = "datetime",
* nullable = true
* )
*/
protected $activationLastChangedDate;
/**
* @param bool $value
* @return $this
*/
public function setEnabled($value)
{
$this->isActive = (bool) $value;
return $this;
}
public function getDescription() {
return $this->workflowDescription;
}
public function getName() {
return $this->workflowName;
}
/**
* @param string $title
* @return Workflow
*/
public function setName($title) {
$this->workflowName = $title;
return $this;
}
/**
* @param string $description
* @return Workflow
*/
public function setDescription($description) {
$this->workflowDescription = $description;
return $this;
}
/**
* @return Boolean
*/
public function isActive() {
return $this->isActive == 1;
}
}