partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

BatchJobQueryField.php (3001B)


      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 query field.
     11  *
     12  * @ORM\Entity
     13  */
     14 class BatchJobQueryField extends BaseEntity
     15 {
     16     /**
     17      * The part this batch job query 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 query.
     27      *
     28      * @ORM\Column(length=255)
     29      * @Groups({"default"})
     30      *
     31      * @var string
     32      */
     33     private $property;
     34 
     35     /**
     36      * The operator to use.
     37      *
     38      * @ORM\Column(length=64)
     39      * @Groups({"default"})
     40      *
     41      * @var string
     42      */
     43     private $operator;
     44 
     45     /**
     46      * The value. May be an array if the operator is IN.
     47      *
     48      * @ORM\Column(type="text")
     49      * @Groups({"default"})
     50      *
     51      * @var string
     52      */
     53     private $value;
     54 
     55     /**
     56      * The description.
     57      *
     58      * @ORM\Column(type="text")
     59      * @Groups({"default"})
     60      *
     61      * @var string
     62      */
     63     private $description;
     64 
     65     /**
     66      * Defines if the value is dynamic (=the user gets prompted upon running the batch job which value to use).
     67      *
     68      * @Groups({"default"})
     69      * @ORM\Column(type="boolean")
     70      *
     71      * @var bool
     72      */
     73     private $dynamic;
     74 
     75     /**
     76      * @return string
     77      */
     78     public function getDescription()
     79     {
     80         return $this->description;
     81     }
     82 
     83     /**
     84      * @param string $description
     85      */
     86     public function setDescription($description)
     87     {
     88         $this->description = $description;
     89     }
     90 
     91     /**
     92      * @return BatchJob
     93      */
     94     public function getBatchJob()
     95     {
     96         return $this->batchJob;
     97     }
     98 
     99     /**
    100      * @param BatchJob $batchJob
    101      */
    102     public function setBatchJob($batchJob = null)
    103     {
    104         $this->batchJob = $batchJob;
    105     }
    106 
    107     /**
    108      * @return string
    109      */
    110     public function getProperty()
    111     {
    112         return $this->property;
    113     }
    114 
    115     /**
    116      * @param string $property
    117      */
    118     public function setProperty($property)
    119     {
    120         $this->property = $property;
    121     }
    122 
    123     /**
    124      * @return string
    125      */
    126     public function getOperator()
    127     {
    128         return $this->operator;
    129     }
    130 
    131     /**
    132      * @param string $operator
    133      */
    134     public function setOperator($operator)
    135     {
    136         $this->operator = $operator;
    137     }
    138 
    139     /**
    140      * @return string
    141      */
    142     public function getValue()
    143     {
    144         return $this->value;
    145     }
    146 
    147     /**
    148      * @param string $value
    149      */
    150     public function setValue($value)
    151     {
    152         $this->value = $value;
    153     }
    154 
    155     /**
    156      * @return mixed
    157      */
    158     public function getDynamic()
    159     {
    160         return $this->dynamic;
    161     }
    162 
    163     /**
    164      * @param mixed $dynamic
    165      */
    166     public function setDynamic($dynamic)
    167     {
    168         $this->dynamic = $dynamic;
    169     }
    170 }