for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Bone\Db\Adapter;
use PDO;
class MySQL extends AbstractDbAdapter
{
public function openConnection()
$host = $this->getHost();
$db = $this->getDatabase();
$user = $this->getUser();
$pass = $this->getPass();
$this->connection = new PDO('mysql:host='.$host.';dbname='.$db, $user, $pass, [
PDO::ATTR_EMULATE_PREPARES => false,
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
]);
}
public function closeConnection()
unset($this->connection);