BatchJobUpdateField.php (2557B)
1 <?php 2 3 namespace PartKeepr\BatchJobBundle\Entity; 4 5 use Doctrine\ORM\Mapping as ORM; 6 use PartKeepr\CoreBundle\Entity\BaseEntity; 7 use Symfony\Component\Serializer\Annotation\Groups; 8 9 /** 10 * Represents a batch job update field. 11 * 12 * @ORM\Entity 13 */ 14 class BatchJobUpdateField extends BaseEntity 15 { 16 /** 17 * The part this batch job update field refers to. 18 * 19 * @ORM\ManyToOne(targetEntity="PartKeepr\BatchJobBundle\Entity\BatchJob", inversedBy="batchJobQueryFields") 20 * 21 * @var BatchJob 22 */ 23 private $batchJob = null; 24 25 /** 26 * The field name to update. 27 * 28 * @ORM\Column(length=255) 29 * @Groups({"default"}) 30 * 31 * @var string 32 */ 33 private $property; 34 35 /** 36 * The value to set. 37 * 38 * @ORM\Column(type="text") 39 * @Groups({"default"}) 40 * 41 * @var string 42 */ 43 private $value; 44 45 /** 46 * The description. 47 * 48 * @ORM\Column(type="text") 49 * @Groups({"default"}) 50 * 51 * @var string 52 */ 53 private $description; 54 55 /** 56 * Defines if the value is dynamic (=the user gets prompted upon running the batch job which value to use). 57 * 58 * @Groups({"default"}) 59 * @ORM\Column(type="boolean") 60 * 61 * @var bool 62 */ 63 private $dynamic; 64 65 /** 66 * @return string 67 */ 68 public function getDescription() 69 { 70 return $this->description; 71 } 72 73 /** 74 * @param string $description 75 */ 76 public function setDescription($description) 77 { 78 $this->description = $description; 79 } 80 81 /** 82 * @return BatchJob 83 */ 84 public function getBatchJob() 85 { 86 return $this->batchJob; 87 } 88 89 /** 90 * @param BatchJob $batchJob 91 */ 92 public function setBatchJob($batchJob = null) 93 { 94 $this->batchJob = $batchJob; 95 } 96 97 /** 98 * @return string 99 */ 100 public function getProperty() 101 { 102 return $this->property; 103 } 104 105 /** 106 * @param string $property 107 */ 108 public function setProperty($property) 109 { 110 $this->property = $property; 111 } 112 113 /** 114 * @return string 115 */ 116 public function getValue() 117 { 118 return $this->value; 119 } 120 121 /** 122 * @param string $value 123 */ 124 public function setValue($value) 125 { 126 $this->value = $value; 127 } 128 129 /** 130 * @return mixed 131 */ 132 public function getDynamic() 133 { 134 return $this->dynamic; 135 } 136 137 /** 138 * @param mixed $dynamic 139 */ 140 public function setDynamic($dynamic) 141 { 142 $this->dynamic = $dynamic; 143 } 144 }