init
This commit is contained in:
36
mysyde/common/interfaces/GenericDBModelInterface.php
Normal file
36
mysyde/common/interfaces/GenericDBModelInterface.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
namespace DynCom\mysyde\common\interfaces;
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: Micha
|
||||
* Date: 19.01.2015
|
||||
* Time: 00:22
|
||||
*/
|
||||
|
||||
interface GenericDBModelInterface {
|
||||
|
||||
/**
|
||||
* @return int|null
|
||||
*/
|
||||
public function getID();
|
||||
|
||||
/**
|
||||
* @return ModelDBConfigInterface
|
||||
*/
|
||||
public function getConfig();
|
||||
|
||||
/**
|
||||
* @return mixed NullObject for ModelClass
|
||||
* If the class has no methods (with exception of construct, getters and setters),
|
||||
* it suffices to pass a new instance without setting its values.
|
||||
* Class methods that depend on data have to check whether those are set first.
|
||||
*/
|
||||
public function getNullObject();
|
||||
|
||||
/**
|
||||
* @param array $fields
|
||||
* @return array
|
||||
*/
|
||||
public function getFieldData(array $fields);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user