public function __construct() { $connection = new Database('mysql:host=' . DB_HOST . ';port=' . DB_PORT . ';dbname=' . DB_NAME, DB_USERNAME, DB_PASSWORD); $this->database = $connection->get_database(); }