1<?php
2
3declare(strict_types=1);
4
5namespace JMS\Serializer\EventDispatcher;
6
7class PreSerializeEvent extends ObjectEvent
8{
9    /**
10     * @param array $params
11     */
12    public function setType(string $typeName, array $params = []): void
13    {
14        $this->type = ['name' => $typeName, 'params' => $params];
15    }
16}
17