| Total Complexity | 4 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 11 | #[Package('business-ops')] |
||
| 12 | class OrderCustomFieldRule extends FlowRule |
||
| 13 | { |
||
| 14 | final public const RULE_NAME = 'orderCustomField'; |
||
| 15 | |||
| 16 | protected string|int|bool|null|float $renderedFieldValue = null; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @param array<string, string> $renderedField |
||
| 20 | * |
||
| 21 | * @internal |
||
| 22 | */ |
||
| 23 | public function __construct( |
||
| 24 | protected string $operator = self::OPERATOR_EQ, |
||
| 25 | protected array $renderedField = [] |
||
| 26 | ) { |
||
| 27 | parent::__construct(); |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @throws UnsupportedOperatorException |
||
| 32 | */ |
||
| 33 | public function match(RuleScope $scope): bool |
||
| 42 | } |
||
| 43 | |||
| 44 | public function getConstraints(): array |
||
| 49 |