1 | <?php |
||
26 | class ConfigValueCondition implements Condition |
||
27 | { |
||
28 | /** |
||
29 | * Name of the config parameter. |
||
30 | * |
||
31 | * @var string |
||
32 | */ |
||
33 | private $name; |
||
34 | |||
35 | /** |
||
36 | * Value of the config parameter. |
||
37 | * |
||
38 | * @var mixed |
||
39 | */ |
||
40 | private $value; |
||
41 | |||
42 | /** |
||
43 | * If true a strict comparison is made. |
||
44 | * |
||
45 | * @var bool |
||
46 | */ |
||
47 | private $strict; |
||
48 | |||
49 | /** |
||
50 | * ConfigCondition constructor. |
||
51 | * |
||
52 | * @param string $name Name of the config parameter. |
||
53 | * @param mixed $value Value of the config parameter. |
||
54 | * @param bool $strict If true a strict comparison is made. |
||
55 | */ |
||
56 | public function __construct(string $name, $value, bool $strict = false) |
||
62 | |||
63 | /** |
||
64 | * {@inheritDoc} |
||
65 | */ |
||
66 | public function match(Workflow $workflow, EntityId $entityId, $entity): bool |
||
76 | } |
||
77 |