1<?php
2
3declare(strict_types=1);
4
5namespace JMS\Serializer\Tests\Fixtures;
6
7use JMS\Serializer\Annotation\Groups;
8
9class GroupsUser
10{
11    private $name;
12
13    /**
14     * @Groups({"nickname_group"})
15     */
16    private $nickname = 'nickname';
17
18    /**
19     * @Groups({"manager_group"})
20     */
21    private $manager;
22
23    /**
24     * @Groups({"friends_group"})
25     */
26    private $friends;
27
28    public function __construct($name, ?GroupsUser $manager = null, array $friends = [])
29    {
30        $this->name = $name;
31        $this->manager = $manager;
32        $this->friends = $friends;
33    }
34}
35