TimestampableInterface.php 879 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. /*
  3. * This file is part of the Sylius package.
  4. *
  5. * (c) Paweł Jędrzejewski
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Sylius\Component\Resource\Model;
  11. /**
  12. * @author Joseph Bielawski <stloyd@gmail.com>
  13. */
  14. interface TimestampableInterface
  15. {
  16. /**
  17. * Get creation time.
  18. *
  19. * @return \DateTime
  20. */
  21. public function getCreatedAt();
  22. /**
  23. * Get the time of last update.
  24. *
  25. * @return \DateTime
  26. */
  27. public function getUpdatedAt();
  28. /**
  29. * Set creation time.
  30. *
  31. * @param \DateTime $createdAt
  32. */
  33. public function setCreatedAt(\DateTime $createdAt);
  34. /**
  35. * Set the time of last update.
  36. *
  37. * @param \DateTime $updatedAt
  38. */
  39. public function setUpdatedAt(\DateTime $updatedAt);
  40. }