Skip to content

Commit b58f4bf

Browse files
committed
Comment enhancements.
1 parent 04a478f commit b58f4bf

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

src/Backend/SqlitePdoRoutineLoaderWorker.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
use SetBased\Stratum\SqlitePdo\Helper\RoutineLoaderHelper;
1212

1313
/**
14-
* Command for loading stored routines into a MySQL instance from pseudo SQL files.
14+
* Command for mimicking loading stored routines into a SQLite instance from pseudo SQL files.
1515
*/
1616
class SqlitePdoRoutineLoaderWorker extends SqlitePdoWorker implements RoutineLoaderWorker
1717
{
1818
//--------------------------------------------------------------------------------------------------------------------
1919
/**
20-
* An array with source filenames that are not loaded into MySQL.
20+
* An array with source filenames that are not loaded into SQLite.
2121
*
2222
* @var array
2323
*/
@@ -211,7 +211,7 @@ private function getDuplicates(): array
211211

212212
//--------------------------------------------------------------------------------------------------------------------
213213
/**
214-
* Loads all stored routines into MySQL.
214+
* Loads all stored routines into SQLite.
215215
*/
216216
private function loadAll(): void
217217
{
@@ -223,7 +223,7 @@ private function loadAll(): void
223223

224224
//--------------------------------------------------------------------------------------------------------------------
225225
/**
226-
* Loads all stored routines in a list into MySQL.
226+
* Loads all stored routines in a list into SQLite.
227227
*
228228
* @param string[] $sources The list of files to be loaded.
229229
*/
@@ -270,7 +270,7 @@ private function loadStoredRoutines(): void
270270

271271
//--------------------------------------------------------------------------------------------------------------------
272272
/**
273-
* Logs the source files that were not successfully loaded into MySQL.
273+
* Logs the source files that were not successfully loaded into SQLite.
274274
*/
275275
private function logOverviewErrors(): void
276276
{

src/Backend/SqlitePdoWorker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use Symfony\Component\Console\Formatter\OutputFormatter;
99

1010
/**
11-
* Base class for commands which needs to connect to a MySQL instance.
11+
* Base class for commands which needs to connect to a SQLite database.
1212
*/
1313
class SqlitePdoWorker
1414
{

src/Exception/SqlitePdoDataLayerException.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ class SqlitePdoDataLayerException extends \RuntimeException implements DataLayer
1212
{
1313
//--------------------------------------------------------------------------------------------------------------------
1414
/**
15-
* The error code value of the error ($mysqli->errno).
15+
* The error code value of the error.
1616
*
1717
* @var string
1818
*/
1919
protected $code;
2020

2121
/**
22-
* Description of the last error ($mysqli->error).
22+
* Description of the last error.
2323
*
2424
* @var string
2525
*/
@@ -29,8 +29,8 @@ class SqlitePdoDataLayerException extends \RuntimeException implements DataLayer
2929
/**
3030
* Object constructor.
3131
*
32-
* @param string $code The error code value of the error ($mysqli->errno).
33-
* @param string $error Description of the last error ($mysqli->error).
32+
* @param string $code The error code value of the error.
33+
* @param string $error Description of the last error.
3434
* @param string|null $query The executed query.
3535
*/
3636
public function __construct(string $code, string $error, string $query = null)
@@ -45,8 +45,8 @@ public function __construct(string $code, string $error, string $query = null)
4545
/**
4646
* Composes the exception message.
4747
*
48-
* @param string $code The error code value of the error ($mysqli->errno).
49-
* @param string $error Description of the error ($mysqli->error).
48+
* @param string $code The error code value of the error.
49+
* @param string $error Description of the error.
5050
* @param string|null $query The executed query.
5151
*
5252
* @return string

src/Helper/DataTypeHelper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use SetBased\Exception\FallenException;
77

88
/**
9-
* Utility class for deriving information based on a MySQL data type.
9+
* Utility class for deriving information based on a SQLite data type.
1010
*/
1111
class DataTypeHelper
1212
{
@@ -96,7 +96,7 @@ public static function escapePhpExpression(string $dataType, string $expression)
9696

9797
//--------------------------------------------------------------------------------------------------------------------
9898
/**
99-
* Returns the corresponding PHP type declaration of a MySQL column type.
99+
* Returns the corresponding PHP type declaration of a SQLite column type.
100100
*
101101
* @param string $phpTypeHint The PHP type hinting.
102102
*

src/Helper/RoutineLoaderHelper.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
use Zend\Code\Reflection\DocBlockReflection;
1616

1717
/**
18-
* Class for loading a single stored routine into a MySQL instance from pseudo SQL file.
18+
* Class for mimicking loading a single stored routine into a SQLite instance from pseudo SQL file.
1919
*/
2020
class RoutineLoaderHelper
2121
{
@@ -155,7 +155,7 @@ public function __construct(StratumStyle $io, string $routineFilename)
155155

156156
//--------------------------------------------------------------------------------------------------------------------
157157
/**
158-
* Loads the stored routine into the instance of MySQL and returns the metadata of the stored routine.
158+
* Loads the stored routine into the instance of SQLite and returns the metadata of the stored routine.
159159
*
160160
* @return array
161161
*/
@@ -511,7 +511,7 @@ private function updateMetadata(): void
511511
//--------------------------------------------------------------------------------------------------------------------
512512
/**
513513
* Validates the parameters found the DocBlock in the source of the stored routine against the parameters from the
514-
* metadata of MySQL and reports missing and unknown parameters names.
514+
* metadata of SQLite and reports missing and unknown parameters names.
515515
*/
516516
private function validateParameterLists(): void
517517
{

0 commit comments

Comments
 (0)