Last active
August 29, 2015 14:04
-
-
Save duartedouglas/3f4cd81d318d48ae35bb to your computer and use it in GitHub Desktop.
Crud Interface
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Whatever\Dao; | |
use Whatever\Model\EntityInterface; | |
/** | |
* Interface DataAccess | |
* @package Whatever\Dao | |
*/ | |
interface DataAccess | |
{ | |
/** | |
* @param EntityInterface $e | |
* @return mixed | |
*/ | |
public function insert(EntityInterface $e); | |
/** | |
* @param EntityInterface $e | |
* @return mixed | |
*/ | |
public function update(EntityInterface $e); | |
/** | |
* @return mixed | |
*/ | |
public function findAll(); | |
/** | |
* @param $id | |
* @return mixed | |
*/ | |
public function findById($id); | |
/** | |
* @param $id | |
* @return mixed | |
*/ | |
public function delete($id); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment