1<?php 2 3declare(strict_types=1); 4 5namespace JMS\Serializer\Tests\Fixtures; 6 7use JMS\Serializer\Annotation as Serializer; 8 9/** 10 * @Serializer\ExclusionPolicy("NONE") 11 * @Serializer\AccessorOrder("custom",custom = {"name", "gender" ,"age"}) 12 */ 13class PersonSecret 14{ 15 /** 16 * @Serializer\Type("string") 17 */ 18 public $name; 19 20 /** 21 * @Serializer\Type("string") 22 * @Serializer\Exclude(if="show_data('gender')") 23 */ 24 public $gender; 25 26 /** 27 * @Serializer\Type("string") 28 * @Serializer\Expose(if="show_data('age')") 29 */ 30 public $age; 31} 32