init
This commit is contained in:
61
mysyde/common/interfaces/UnitOfWorkInterface.php
Normal file
61
mysyde/common/interfaces/UnitOfWorkInterface.php
Normal file
@@ -0,0 +1,61 @@
|
||||
<?php
|
||||
namespace DynCom\mysyde\common\interfaces;
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: Bauer
|
||||
* Date: 6/2/2015
|
||||
* Time: 1:35 PM
|
||||
*/
|
||||
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: Bauer
|
||||
* Date: 6/2/2015
|
||||
* Time: 10:04 AM
|
||||
*/
|
||||
interface UnitOfWorkInterface
|
||||
{
|
||||
|
||||
/**
|
||||
* @param Entity $entity
|
||||
* @return mixed
|
||||
*/
|
||||
public function registerNew(Entity $entity);
|
||||
|
||||
/**
|
||||
* @param Entity $entity
|
||||
* @return mixed
|
||||
*/
|
||||
public function registerClean(Entity $entity);
|
||||
|
||||
/**
|
||||
* @param Entity $entity
|
||||
* @return mixed
|
||||
*/
|
||||
public function registerDirty(Entity $entity);
|
||||
|
||||
/**
|
||||
* @param Entity $entity
|
||||
* @return mixed
|
||||
*/
|
||||
public function registerRemoved(Entity $entity);
|
||||
|
||||
/**
|
||||
* @param Entity $entity
|
||||
* @param $state
|
||||
* @return mixed
|
||||
*/
|
||||
public function registerEntity(Entity $entity, $state);
|
||||
|
||||
/**
|
||||
* @param Entity $entity
|
||||
* @return mixed
|
||||
*/
|
||||
public function unregisterEntity(Entity $entity);
|
||||
|
||||
public function clear();
|
||||
|
||||
public function commit();
|
||||
|
||||
public function rollback();
|
||||
}
|
||||
Reference in New Issue
Block a user