original_string: protected function createPDOMySQL($location, $database, $username, $password, $errorMode, $charset)
      {
          $dsn = 'mysql:host=' . $location . ';dbname=' . $database;
          if ($charset !== null) {
              $dsn .= ';charset=' . $charset;
          }
  
          $db  = new \Parable\ORM\Database\PDOMySQL($dsn, $username, $password);
          $db->setAttribute(\PDO::ATTR_ERRMODE, $errorMode);
  
          return $db;
      }
code: protected function createPDOMySQL($location, $database, $username, $password, $errorMode, $charset)
      {
          $dsn = 'mysql:host=' . $location . ';dbname=' . $database;
          if ($charset !== null) {
              $dsn .= ';charset=' . $charset;
          }
  
          $db  = new \Parable\ORM\Database\PDOMySQL($dsn, $username, $password);
          $db->setAttribute(\PDO::ATTR_ERRMODE, $errorMode);
  
          return $db;
      }
code_tokens: protected function createPDOMySQL ( $ location , $ database , $ username , $ password , $ errorMode , $ charset ) { $ dsn = 'mysql:host=' . $ location . ';dbname=' . $ database ; if ( $ charset !== null ) { $ dsn .= ';charset=' . $ charset ; } $ db = new \ Parable \ ORM \ Database \ PDOMySQL ( $ dsn , $ username , $ password ) ; $ db -> setAttribute ( \ PDO :: ATTR_ERRMODE , $ errorMode ) ; return $ db ; }
docstring: Create and return a MySQL PDO instance.
  
  @param string $location
  @param string $database
  @param string $username
  @param string $password
  @param int    $errorMode
  @param string $charset
  
  @return \Parable\ORM\Database\PDOMySQL
  
  @codeCoverageIgnore
docstring_tokens: Create and return a MySQL PDO instance .