public function __construct($dsn, $table = 'clockwork', $username = null, $password = null) { if ($dsn instanceof PDO) { $this->pdo = $dsn; } else { $this->pdo = new PDO($dsn, $username, $password); } $this->table = $table; }