40 lines
715 B
PHP
40 lines
715 B
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of the Sylius package.
|
|
*
|
|
* (c) Paweł Jędrzejewski
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace Sylius\Component\Resource\Model;
|
|
|
|
/**
|
|
* @author Joseph Bielawski <stloyd@gmail.com>
|
|
*/
|
|
interface SoftDeletableInterface
|
|
{
|
|
/**
|
|
* Is item deleted?
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function isDeleted();
|
|
|
|
/**
|
|
* Get the time of deletion.
|
|
*
|
|
* @return \DateTime
|
|
*/
|
|
public function getDeletedAt();
|
|
|
|
/**
|
|
* Set deletion time.
|
|
*
|
|
* @param \DateTime $deletedAt
|
|
*/
|
|
public function setDeletedAt(\DateTime $deletedAt);
|
|
}
|