SimpleObjectWithStaticProp.php 496 B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace JMS\Serializer\Tests\Fixtures;
  3. use JMS\Serializer\Annotation\SerializedName;
  4. use JMS\Serializer\Annotation\Type;
  5. class SimpleObjectWithStaticProp
  6. {
  7. /** @Type("string") */
  8. private static $foo;
  9. /**
  10. * @SerializedName("moo")
  11. * @Type("string")
  12. */
  13. private static $bar;
  14. /** @Type("string") */
  15. protected static $camelCase = 'boo';
  16. public function __construct($foo, $bar)
  17. {
  18. self::$foo = $foo;
  19. self::$bar = $bar;
  20. }
  21. }