SimpleObject.php 444 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace JMS\SerializerBundle\Tests\Fixtures;
  3. class SimpleObject
  4. {
  5. private $foo;
  6. /**
  7. * @SerializedName("moo")
  8. */
  9. private $bar;
  10. protected $camelCase = 'boo';
  11. public function __construct($foo, $bar)
  12. {
  13. $this->foo = $foo;
  14. $this->bar = $bar;
  15. }
  16. public function getFoo()
  17. {
  18. return $this->foo;
  19. }
  20. public function getBar()
  21. {
  22. return $this->bar;
  23. }
  24. }