AccessorOrderMethod.php 418 B

12345678910111213141516171819202122
  1. <?php
  2. namespace JMS\Serializer\Tests\Fixtures;
  3. use JMS\Serializer\Annotation as Serializer;
  4. /** @Serializer\AccessorOrder("custom", custom = {"method", "b", "a"}) */
  5. class AccessorOrderMethod
  6. {
  7. private $b = 'b', $a = 'a';
  8. /**
  9. * @Serializer\VirtualProperty
  10. * @Serializer\SerializedName("foo")
  11. *
  12. * @return string
  13. */
  14. public function getMethod()
  15. {
  16. return 'c';
  17. }
  18. }