src/Cms/WorkflowsBundle/Entity/WorkflowEnforcement.php line 22

Open in your IDE?
  1. <?php
  2. namespace Cms\WorkflowsBundle\Entity;
  3. use Cms\ContainerBundle\Entity\Container;
  4. use Cms\TenantBundle\Entity\TenantedEntity;
  5. use DateTime;
  6. use Platform\SecurityBundle\Entity\Identity\Account;
  7. use Doctrine\ORM\Mapping as ORM;
  8. use Platform\SecurityBundle\Entity\Identity\Group;
  9. /**
  10.  * Class WorkflowEnforcement
  11.  * @package Cms\WorkflowsBundle\Entity
  12.  *
  13.  * @ORM\Entity(
  14.  *     repositoryClass = "Cms\WorkflowsBundle\Doctrine\WorkflowEnforcementRepository"
  15.  * )
  16.  * @ORM\Table(
  17.  *     name = "cms__workflows_workflow_enforcement"
  18.  * )
  19.  */
  20. class WorkflowEnforcement extends TenantedEntity {
  21.     /**
  22.      * @var Workflow
  23.      *
  24.      * @ORM\ManyToOne(
  25.      *     targetEntity = "Cms\WorkflowsBundle\Entity\Workflow",
  26.      * )
  27.      * @ORM\JoinColumn(
  28.      *     name = "submission",
  29.      *     referencedColumnName = "id",
  30.      *     onDelete = "CASCADE"
  31.      * )
  32.      */
  33.     protected $workflow;
  34.     /**
  35.      * @var WorkflowIdentity
  36.      *
  37.      * @ORM\ManyToOne(
  38.      *     targetEntity = "Cms\WorkflowsBundle\Entity\WorkflowIdentity",
  39.      * )
  40.      * @ORM\JoinColumn(
  41.      *     name = "workflowIdentity",
  42.      *     referencedColumnName = "id",
  43.      *     onDelete = "CASCADE"
  44.      * )
  45.      */
  46.     protected $workflowIdentity;
  47.     /**
  48.      * @var Container
  49.      *
  50.      * @ORM\ManyToOne(
  51.      *     targetEntity = "Cms\ContainerBundle\Entity\Container",
  52.      * )
  53.      * @ORM\JoinColumn(
  54.      *     name = "container",
  55.      *     referencedColumnName = "id",
  56.      *     onDelete = "CASCADE"
  57.      * )
  58.      */
  59.     protected $container;
  60.     /**
  61.      * @return Workflow
  62.      */
  63.     public function getWorkflow() {
  64.         return $this->workflow;
  65.     }
  66.     /**
  67.      * @return Container
  68.      */
  69.     public function getWorkflowDepartment() {
  70.         return $this->container;
  71.     }
  72.     public function setWorkflow($workflow)
  73.     {
  74.         $this->workflow $workflow;
  75.         return $this;
  76.     }
  77.     public function setDepartment($department)
  78.     {
  79.         $this->container $department;
  80.         return $this;
  81.     }
  82. }