Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- abstract class Connection {
- //Every connection should connect to a host
- public function __construct($host) {
- /...
- }
- }
- abstract class DatabaseConnection {
- //But for a DB connection, you need more :D
- public function __construct($host, $username, $password, $dbName, $creds = []) {
- /...
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement