| 1 | <?php |
||
| 11 | class Transform implements Processor |
||
| 12 | { |
||
| 13 | use Processor\Implementation; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Allowed transformation functions |
||
| 17 | * @var type |
||
| 18 | */ |
||
| 19 | public $allowed = [ |
||
| 20 | 'hash', |
||
| 21 | 'base64_encode', |
||
| 22 | 'base64_decode', |
||
| 23 | 'json_encode', |
||
| 24 | 'json_decode', |
||
| 25 | 'serialize', |
||
| 26 | 'unserialize' |
||
| 27 | ]; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Apply processing to a single node |
||
| 31 | * |
||
| 32 | * @param Node $node |
||
| 33 | */ |
||
| 34 | public function applyToNode(Node $node) |
||
| 61 | } |
||
| 62 |