PersonSecretMore.php 454 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace JMS\Serializer\Tests\Fixtures;
  3. use JMS\Serializer\Annotation as Serializer;
  4. /**
  5. * @Serializer\ExclusionPolicy("ALL")
  6. * @Serializer\AccessorOrder("custom",custom = {"name", "gender"})
  7. */
  8. class PersonSecretMore
  9. {
  10. /**
  11. * @Serializer\Type("string")
  12. * @Serializer\Expose()
  13. */
  14. public $name;
  15. /**
  16. * @Serializer\Type("string")
  17. * @Serializer\Expose(if="show_data('gender')")
  18. */
  19. public $gender;
  20. }