forked from doctrine-extensions/DoctrineExtensions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SoftDeleteableAdapter.php
31 lines (27 loc) · 849 Bytes
/
SoftDeleteableAdapter.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
/*
* This file is part of the Doctrine Behavioral Extensions package.
* (c) Gediminas Morkevicius <[email protected]> http://www.gediminasm.org
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Gedmo\SoftDeleteable\Mapping\Event;
use Doctrine\Persistence\Mapping\ClassMetadata;
use Gedmo\Mapping\Event\AdapterInterface;
/**
* Doctrine event adapter for the SoftDeleteable extension.
*
* @author Gediminas Morkevicius <[email protected]>
*/
interface SoftDeleteableAdapter extends AdapterInterface
{
/**
* Get the date value.
*
* @param ClassMetadata $meta
* @param string $field
*
* @return int|\DateTimeInterface
*/
public function getDateValue($meta, $field);
}