This commit is contained in:
2026-02-17 14:56:23 +01:00
commit 68f7a95fdf
695 changed files with 154611 additions and 0 deletions

View File

@@ -0,0 +1,52 @@
<?php
namespace DynCom\mysyde\common\interfaces;
/**
* Created by PhpStorm.
* User: Bauer
* Date: 08.07.2015
* Time: 02:48
*/
interface CRUDObjectStorage
{
/**
* @param Entity $entity
* @return mixed
*/
public function create(Entity $entity);
/**
* @param $id
* @param $className
* @param string $namespace
* @return mixed
*/
public function read($id, $className, $namespace = 'global');
/**
* @param Entity $entity
* @return mixed
*/
public function update(Entity $entity);
/**
* @param Entity $entity
* @return mixed
*/
public function replace(Entity $entity);
/**
* @param Entity $entity
* @return mixed
*/
public function delete(Entity $entity);
/**
* @param $id
* @param $className
* @param string $namespace
* @return mixed
*/
public function getByID($id, $className, $namespace = 'global');
}