Guest User

Untitled

a guest
Nov 20th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. <?php
  2.  
  3. /*
  4. * This file is part of the Silex framework.
  5. *
  6. * (c) Fabien Potencier <fabien@symfony.com>
  7. *
  8. * This source file is subject to the MIT license that is bundled
  9. * with this source code in the file LICENSE.
  10. */
  11.  
  12. namespace Silex\Tests\Provider;
  13.  
  14. use DateTime;
  15. use JMS\SerializerBundle\Annotation\Type;
  16.  
  17. /**
  18. * This class is used by the JMSSerializerServiceProviderTest.
  19. *
  20. * @author Marijn Huizendveld <marijn@pink-tie.com>
  21. */
  22. class SerializableUser
  23. {
  24. /**
  25. * @Type("integer")
  26. */
  27. private $id;
  28.  
  29. /**
  30. * @Type("string")
  31. */
  32. private $name;
  33.  
  34. /**
  35. * @Type("DateTime")
  36. */
  37. private $created;
  38.  
  39. public function __construct($id, $name, DateTime $created)
  40. {
  41. $this->id = $id;
  42. $this->name = $name;
  43. $this->created = $created;
  44. }
  45. }
Add Comment
Please, Sign In to add comment