src/Rules/Generic/Enum.php 1 location
|
@@ 54-61 (lines=8) @@
|
| 51 |
|
/** |
| 52 |
|
* @inheritdoc |
| 53 |
|
*/ |
| 54 |
|
public function toBlock(): ExecutionBlockInterface |
| 55 |
|
{ |
| 56 |
|
$properties = $this->getStandardProperties() + [ |
| 57 |
|
static::PROPERTY_VALUES => $this->getValues(), |
| 58 |
|
]; |
| 59 |
|
|
| 60 |
|
return (new ProcedureBlock([self::class, 'execute']))->setProperties($properties); |
| 61 |
|
} |
| 62 |
|
|
| 63 |
|
/** |
| 64 |
|
* @param mixed $value |
src/Rules/Generic/Filter.php 1 location
|
@@ 66-74 (lines=9) @@
|
| 63 |
|
/** |
| 64 |
|
* @inheritdoc |
| 65 |
|
*/ |
| 66 |
|
public function toBlock(): ExecutionBlockInterface |
| 67 |
|
{ |
| 68 |
|
$properties = $this->getStandardProperties() + [ |
| 69 |
|
static::PROPERTY_FILTER_ID => $this->getFilterId(), |
| 70 |
|
static::PROPERTY_FILTER_OPTIONS => $this->getFilterOptions(), |
| 71 |
|
]; |
| 72 |
|
|
| 73 |
|
return (new ProcedureBlock([self::class, 'execute']))->setProperties($properties); |
| 74 |
|
} |
| 75 |
|
|
| 76 |
|
/** |
| 77 |
|
* @param mixed $value |