GroupsTrim.php 552 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. namespace JMS\Serializer\Tests\Fixtures;
  3. use JMS\Serializer\Annotation\Type;
  4. use JMS\Serializer\Annotation\Groups;
  5. class GroupsTrim
  6. {
  7. /**
  8. * @var int
  9. */
  10. private $amount;
  11. /**
  12. * @var string
  13. */
  14. private $currency;
  15. public function __construct($amount, $currency)
  16. {
  17. $this->amount = (int) $amount;
  18. $this->currency = $currency;
  19. }
  20. public function getAmount()
  21. {
  22. return $this->amount;
  23. }
  24. public function getCurrency()
  25. {
  26. return $this->currency;
  27. }
  28. }