-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cb54aaa
commit 63311f7
Showing
16 changed files
with
620 additions
and
441 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
namespace SimpleCrud; | ||
|
||
/** | ||
* Interface used by the entity factory | ||
*/ | ||
interface EntityFactoryInterface | ||
{ | ||
/** | ||
* Set the database used for the entities | ||
* | ||
* @param SimpleCrud $db | ||
* | ||
* @return self | ||
*/ | ||
public function setDb(SimpleCrud $db); | ||
|
||
/** | ||
* Check whether or not an Entity is instantiable. | ||
* | ||
* @param string $name | ||
* | ||
* @return boolean | ||
*/ | ||
public function has($name); | ||
|
||
/** | ||
* Creates a new instance of an Entity. | ||
* | ||
* @param string $name | ||
* | ||
* @throws SimpleCrudException | ||
* | ||
* @return Entity | ||
*/ | ||
public function get($name); | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.