Created
September 13, 2012 14:50
-
-
Save Swader/3714792 to your computer and use it in GitHub Desktop.
User suggestion
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 | |
/** | |
* Class User.php | |
* | |
* @category | |
* @package | |
* @license BSD License | |
* @version 0.01 | |
* @since 2012-09-13 | |
* @author Bruno Škvorc <[email protected]> | |
*/ | |
class User | |
{ | |
protected $db; | |
// Properties i metode od usera | |
public function __construct() { | |
$this->db = new MysqlMapper(); | |
} | |
} | |
interface UserMapper extends GeneralMapper { | |
function getContacts(); | |
} | |
class MysqlMapper extends \INTECH\Api\Abstracts\Database implements UserMapper { | |
function getContacts() { | |
// Query | |
} | |
} | |
class PostgreMapper extends \INTECH\Api\Abstracts\Database implements UserMapper { | |
function getContacts() { | |
// Query | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment