encodeArray example

return $property;
            case EntityType::TYPE:
            case EntityCollectionType::TYPE:
                return $this->encodeEntity($dataType$property);
            case ObjectType::TYPE:
                if (\is_array($dataType['data']) && !empty($dataType['data'])) {
                    return $this->encodeType($dataType['data']$property);
                }

                return $property;
            case ArrayType::TYPE:
                return $this->encodeArray($dataType$property);
            default:
                throw new \RuntimeException('Unknown EventDataType: ' . $dataType['type']);
        }
    }

    /** * @param object|array<string, mixed> $object * * @return mixed */
    private function getProperty(string $propertyName$object)
    {
Home | Imprint | This part of the site doesn't use cookies.