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