| Total Complexity | 7 |
| Total Lines | 61 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | final class Condition extends AbstractNode implements ConditionInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | private $operator; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | private $valueIdentifier; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var mixed |
||
| 24 | */ |
||
| 25 | private $valueCompare; |
||
| 26 | |||
| 27 | public function __construct( |
||
| 28 | string $valueIdentifier, |
||
| 29 | string $operator, |
||
| 30 | $valueCompare |
||
| 31 | ) { |
||
| 32 | $this->setValueIdentifier($valueIdentifier); |
||
| 33 | $this->setOperator($operator); |
||
| 34 | $this->setValueCompare($valueCompare); |
||
| 35 | } |
||
| 36 | |||
| 37 | public function getOperator(): string |
||
| 38 | { |
||
| 39 | return $this->operator; |
||
| 40 | } |
||
| 41 | |||
| 42 | public function setOperator(string $operator): ConditionInterface |
||
| 43 | { |
||
| 44 | $this->operator = $operator; |
||
| 45 | |||
| 46 | return $this; |
||
| 47 | } |
||
| 48 | |||
| 49 | public function getValueIdentifier(): string |
||
| 52 | } |
||
| 53 | |||
| 54 | public function setValueIdentifier(string $identifier): ConditionInterface |
||
| 55 | { |
||
| 56 | $this->valueIdentifier = $identifier; |
||
| 57 | |||
| 58 | return $this; |
||
| 59 | } |
||
| 60 | |||
| 61 | public function getValueCompare() |
||
| 64 | } |
||
| 65 | |||
| 66 | public function setValueCompare($value): ConditionInterface |
||
| 71 | } |
||
| 72 | } |
||
| 73 |