1<?php 2 3declare(strict_types=1); 4 5namespace JMS\Serializer\Tests\Fixtures; 6 7use JMS\Serializer\Annotation\Groups; 8use JMS\Serializer\Annotation\Type; 9 10/** blablub */ 11class GroupsObject 12{ 13 /** 14 * @Groups({"foo"}) 15 * @Type("string") 16 */ 17 private $foo; 18 19 /** 20 * @Groups({"foo","bar"}) 21 * @Type("string") 22 */ 23 private $foobar; 24 25 /** 26 * @Groups({"bar", "Default"}) 27 * @Type("string") 28 */ 29 private $bar; 30 31 /** 32 * @Type("string") 33 */ 34 private $none; 35 36 public function __construct() 37 { 38 $this->foo = 'foo'; 39 $this->bar = 'bar'; 40 $this->foobar = 'foobar'; 41 $this->none = 'none'; 42 } 43} 44