1<?php
2
3declare(strict_types=1);
4
5namespace JMS\Serializer\Tests\Fixtures;
6
7use JMS\Serializer\Annotation\AccessType;
8use JMS\Serializer\Annotation\Exclude;
9use JMS\Serializer\Annotation\ReadOnly;
10
11/**
12 * @AccessType("public_method")
13 * @ReadOnly
14 */
15class ExcludePublicAccessor
16{
17    /**
18     * @Exclude
19     * @var mixed
20     */
21    private $iShallNotBeAccessed;
22
23    /**
24     * @var int
25     */
26    private $id = 1;
27
28    public function getId()
29    {
30        return $this->id;
31    }
32}
33