Licitator 1.0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
916 B

5 years ago
  1. <?php
  2. namespace Zitec\RuleEngineBundle\Form;
  3. /**
  4. * Class RuleObject
  5. * Object that holds a json and an expression language string, mapping them on a single form type.
  6. */
  7. class RuleObject
  8. {
  9. /**
  10. * @var string
  11. */
  12. protected $json;
  13. /**
  14. * @var string
  15. */
  16. protected $expression;
  17. /**
  18. * @return mixed
  19. */
  20. public function getJson()
  21. {
  22. return $this->json;
  23. }
  24. /**
  25. * @param mixed $json
  26. *
  27. * @return RuleObject
  28. */
  29. public function setJson($json)
  30. {
  31. $this->json = $json;
  32. return $this;
  33. }
  34. /**
  35. * @return mixed
  36. */
  37. public function getExpression()
  38. {
  39. return $this->expression;
  40. }
  41. /**
  42. * @param mixed $expression
  43. * @return RuleObject
  44. */
  45. public function setExpression($expression)
  46. {
  47. $this->expression = $expression;
  48. return $this;
  49. }
  50. }