encodeType example

public function __construct(
        private readonly JsonEntityEncoder $entityEncoder,
        private readonly DefinitionInstanceRegistry $definitionRegistry
    ) {
    }

    /** * @return array<string, mixed> */
    public function encode(FlowEventAware $event): array
    {
        return $this->encodeType($event->getAvailableData()->toArray()$event);
    }

    /** * @param array<string, mixed> $data * @param array<string, mixed> $stored * * @return array<string, mixed> */
    public function encodeData(array $data, array $stored): array
    {
        foreach ($data as $key => $property) {
            
Home | Imprint | This part of the site doesn't use cookies.