| 1 | <?php |
||
| 14 | class Criteria |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var integer |
||
| 18 | * |
||
| 19 | * @ORM\Column(name="id", type="integer") |
||
| 20 | * @ORM\Id |
||
| 21 | * @ORM\GeneratedValue(strategy="AUTO") |
||
| 22 | */ |
||
| 23 | private $id; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var string |
||
| 27 | * |
||
| 28 | * @ORM\Column(name="name", type="string", length=255) |
||
| 29 | */ |
||
| 30 | private $name; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @var string |
||
| 34 | * |
||
| 35 | * @ORM\Column(name="operator", type="string", length=25) |
||
| 36 | */ |
||
| 37 | private $operator; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @var string |
||
| 41 | * |
||
| 42 | * @ORM\Column(name="value", type="string", length=255) |
||
| 43 | */ |
||
| 44 | private $value; |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @var Widget |
||
| 48 | * |
||
| 49 | * @ORM\ManyToOne(targetEntity="\Victoire\Bundle\WidgetBundle\Entity\Widget", inversedBy="criterias") |
||
| 50 | * @ORM\JoinColumn(name="widget_id", referencedColumnName="id", onDelete="CASCADE") |
||
| 51 | */ |
||
| 52 | protected $widget; |
||
| 53 | |||
| 54 | /** |
||
| 55 | * Get id |
||
| 56 | * |
||
| 57 | * @return integer |
||
| 58 | */ |
||
| 59 | public function getId() |
||
| 63 | |||
| 64 | /** |
||
| 65 | * @return string |
||
| 66 | */ |
||
| 67 | public function getName() |
||
| 71 | |||
| 72 | /** |
||
| 73 | * @param string $name |
||
| 74 | */ |
||
| 75 | public function setName($name) |
||
| 79 | |||
| 80 | |||
| 81 | /** |
||
| 82 | * Set operand |
||
| 83 | * |
||
| 84 | * @param string $operator |
||
| 85 | * |
||
| 86 | * @return Criteria |
||
| 87 | */ |
||
| 88 | public function setOperator($operator) |
||
| 94 | |||
| 95 | /** |
||
| 96 | * Get operand |
||
| 97 | * |
||
| 98 | * @return string |
||
| 99 | */ |
||
| 100 | public function getOperator() |
||
| 104 | |||
| 105 | /** |
||
| 106 | * Set value |
||
| 107 | * |
||
| 108 | * @param string $value |
||
| 109 | * |
||
| 110 | * @return Criteria |
||
| 111 | */ |
||
| 112 | public function setValue($value) |
||
| 118 | |||
| 119 | /** |
||
| 120 | * Get value |
||
| 121 | * |
||
| 122 | * @return string |
||
| 123 | */ |
||
| 124 | public function getValue() |
||
| 128 | |||
| 129 | /** |
||
| 130 | * @return Widget |
||
| 131 | */ |
||
| 132 | public function getWidget() |
||
| 136 | |||
| 137 | /** |
||
| 138 | * @param Widget $widget |
||
| 139 | */ |
||
| 140 | public function setWidget($widget) |
||
| 144 | |||
| 145 | } |
||
| 146 | |||
| 147 |