Skip to content

Commit b597c7a

Browse files
authored
Added visibility modifiers for constants
1 parent aad9480 commit b597c7a

File tree

1 file changed

+15
-15
lines changed
  • lib/internal/Magento/Framework/DB/Adapter/Pdo

1 file changed

+15
-15
lines changed

lib/internal/Magento/Framework/DB/Adapter/Pdo/Mysql.php

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -47,31 +47,31 @@ class Mysql extends \Zend_Db_Adapter_Pdo_Mysql implements AdapterInterface
4747
{
4848
// @codingStandardsIgnoreEnd
4949

50-
const TIMESTAMP_FORMAT = 'Y-m-d H:i:s';
51-
const DATETIME_FORMAT = 'Y-m-d H:i:s';
52-
const DATE_FORMAT = 'Y-m-d';
50+
public const TIMESTAMP_FORMAT = 'Y-m-d H:i:s';
51+
public const DATETIME_FORMAT = 'Y-m-d H:i:s';
52+
public const DATE_FORMAT = 'Y-m-d';
5353

54-
const DDL_DESCRIBE = 1;
55-
const DDL_CREATE = 2;
56-
const DDL_INDEX = 3;
57-
const DDL_FOREIGN_KEY = 4;
58-
const DDL_EXISTS = 5;
59-
const DDL_CACHE_PREFIX = 'DB_PDO_MYSQL_DDL';
60-
const DDL_CACHE_TAG = 'DB_PDO_MYSQL_DDL';
54+
public const DDL_DESCRIBE = 1;
55+
public const DDL_CREATE = 2;
56+
public const DDL_INDEX = 3;
57+
public const DDL_FOREIGN_KEY = 4;
58+
public const DDL_EXISTS = 5;
59+
public const DDL_CACHE_PREFIX = 'DB_PDO_MYSQL_DDL';
60+
public const DDL_CACHE_TAG = 'DB_PDO_MYSQL_DDL';
6161

62-
const LENGTH_TABLE_NAME = 64;
63-
const LENGTH_INDEX_NAME = 64;
64-
const LENGTH_FOREIGN_NAME = 64;
62+
public const LENGTH_TABLE_NAME = 64;
63+
public const LENGTH_INDEX_NAME = 64;
64+
public const LENGTH_FOREIGN_NAME = 64;
6565

6666
/**
6767
* MEMORY engine type for MySQL tables
6868
*/
69-
const ENGINE_MEMORY = 'MEMORY';
69+
public const ENGINE_MEMORY = 'MEMORY';
7070

7171
/**
7272
* Maximum number of connection retries
7373
*/
74-
const MAX_CONNECTION_RETRIES = 10;
74+
public const MAX_CONNECTION_RETRIES = 10;
7575

7676
/**
7777
* Default class name for a DB statement.

0 commit comments

Comments
 (0)