1<?php
2
3declare(strict_types=1);
4
5namespace JMS\Serializer\Tests\Fixtures\Discriminator;
6
7use JMS\Serializer\Annotation as Serializer;
8
9/**
10 * @Serializer\Discriminator(field = "type", map = {
11 *    "post": "JMS\Serializer\Tests\Fixtures\Discriminator\Post",
12 *    "image_post": "JMS\Serializer\Tests\Fixtures\Discriminator\ImagePost",
13 * })
14 */
15class Post
16{
17    /** @Serializer\Type("string") */
18    public $title;
19
20    public function __construct(string $title)
21    {
22        $this->title = $title;
23    }
24}
25