TimestampableAdapter.php 543 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace Gedmo\Timestampable\Mapping\Event;
  3. use Gedmo\Mapping\Event\AdapterInterface;
  4. /**
  5. * Doctrine event adapter interface
  6. * for Timestampable behavior
  7. *
  8. * @author Gediminas Morkevicius <gediminas.morkevicius@gmail.com>
  9. * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
  10. */
  11. interface TimestampableAdapter extends AdapterInterface
  12. {
  13. /**
  14. * Get the date value
  15. *
  16. * @param object $meta
  17. * @param string $field
  18. * @return mixed
  19. */
  20. function getDateValue($meta, $field);
  21. }