public function __construct(\PDO $pdo, $tableName)
{
$driverName = $pdo->getAttribute(\PDO::ATTR_DRIVER_NAME);
if (!$this->supportsDriver($driverName)) {
throw new \InvalidArgumentException(sprintf('PDO driver "%s" is unsupported by "%s".', $driverName, get_class($this)));
}
$this->pdo = $pdo;
$this->tableName = $tableName;
}