Timestamp.php 353 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace JMS\Serializer\Tests\Fixtures;
  3. use JMS\Serializer\Annotation\Type;
  4. class Timestamp
  5. {
  6. /**
  7. * @Type("DateTime<'U'>")
  8. */
  9. private $timestamp;
  10. public function __construct($timestamp)
  11. {
  12. $this->timestamp = $timestamp;
  13. }
  14. public function getTimestamp()
  15. {
  16. return $this->timestamp;
  17. }
  18. }