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
60 lines
916 B
<?php
|
|
|
|
namespace Zitec\RuleEngineBundle\Form;
|
|
|
|
/**
|
|
* Class RuleObject
|
|
* Object that holds a json and an expression language string, mapping them on a single form type.
|
|
*/
|
|
class RuleObject
|
|
{
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
protected $json;
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
protected $expression;
|
|
|
|
/**
|
|
* @return mixed
|
|
*/
|
|
public function getJson()
|
|
{
|
|
return $this->json;
|
|
}
|
|
|
|
/**
|
|
* @param mixed $json
|
|
*
|
|
* @return RuleObject
|
|
*/
|
|
public function setJson($json)
|
|
{
|
|
$this->json = $json;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* @return mixed
|
|
*/
|
|
public function getExpression()
|
|
{
|
|
return $this->expression;
|
|
}
|
|
|
|
/**
|
|
* @param mixed $expression
|
|
* @return RuleObject
|
|
*/
|
|
public function setExpression($expression)
|
|
{
|
|
$this->expression = $expression;
|
|
|
|
return $this;
|
|
}
|
|
}
|