SoftDeletableInterface.php 715 B

123456789101112131415161718192021222324252627282930313233343536373839
  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 SoftDeletableInterface
  15. {
  16. /**
  17. * Is item deleted?
  18. *
  19. * @return bool
  20. */
  21. public function isDeleted();
  22. /**
  23. * Get the time of deletion.
  24. *
  25. * @return \DateTime
  26. */
  27. public function getDeletedAt();
  28. /**
  29. * Set deletion time.
  30. *
  31. * @param \DateTime $deletedAt
  32. */
  33. public function setDeletedAt(\DateTime $deletedAt);
  34. }