Skip to content

Commit

Permalink
Replace @final annotation with the final keyword
Browse files Browse the repository at this point in the history
Related to #271 and #362.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
  • Loading branch information
MauricioFauth committed Jan 3, 2022
1 parent 9a5eaab commit e9c5a45
Show file tree
Hide file tree
Showing 26 changed files with 25 additions and 77 deletions.
4 changes: 1 addition & 3 deletions src/Components/AlterOperation.php
Expand Up @@ -19,10 +19,8 @@

/**
* Parses an alter operation.
*
* @final
*/
class AlterOperation implements Component
final class AlterOperation implements Component
{
/**
* All database options.
Expand Down
4 changes: 1 addition & 3 deletions src/Components/Array2d.php
Expand Up @@ -18,10 +18,8 @@

/**
* `VALUES` keyword parser.
*
* @final
*/
class Array2d implements Component
final class Array2d implements Component
{
/**
* @param Parser $parser the parser that serves as context
Expand Down
4 changes: 1 addition & 3 deletions src/Components/ArrayObj.php
Expand Up @@ -19,10 +19,8 @@

/**
* Parses an array.
*
* @final
*/
class ArrayObj implements Component
final class ArrayObj implements Component
{
/**
* The array that contains the unprocessed value of each token.
Expand Down
4 changes: 1 addition & 3 deletions src/Components/CaseExpression.php
Expand Up @@ -17,10 +17,8 @@

/**
* Parses a reference to a CASE expression.
*
* @final
*/
class CaseExpression implements Component
final class CaseExpression implements Component
{
/**
* The value to be compared.
Expand Down
4 changes: 1 addition & 3 deletions src/Components/Condition.php
Expand Up @@ -19,10 +19,8 @@

/**
* `WHERE` keyword parser.
*
* @final
*/
class Condition implements Component
final class Condition implements Component
{
/**
* Logical operators that can be used to delimit expressions.
Expand Down
4 changes: 1 addition & 3 deletions src/Components/CreateDefinition.php
Expand Up @@ -23,10 +23,8 @@
* Parses the create definition of a column or a key.
*
* Used for parsing `CREATE TABLE` statement.
*
* @final
*/
class CreateDefinition implements Component
final class CreateDefinition implements Component
{
/**
* All field options.
Expand Down
4 changes: 1 addition & 3 deletions src/Components/DataType.php
Expand Up @@ -19,10 +19,8 @@

/**
* Parses a data type.
*
* @final
*/
class DataType implements Component
final class DataType implements Component
{
/**
* All data type options.
Expand Down
4 changes: 1 addition & 3 deletions src/Components/Expression.php
Expand Up @@ -23,10 +23,8 @@
/**
* Parses a reference to an expression (column, table or database name, function
* call, mathematical expression, etc.).
*
* @final
*/
class Expression implements Component
final class Expression implements Component
{
/**
* List of allowed reserved keywords in expressions.
Expand Down
4 changes: 1 addition & 3 deletions src/Components/ExpressionArray.php
Expand Up @@ -22,10 +22,8 @@

/**
* Parses a list of expressions delimited by a comma.
*
* @final
*/
class ExpressionArray implements Component
final class ExpressionArray implements Component
{
/**
* @param Parser $parser the parser that serves as context
Expand Down
4 changes: 1 addition & 3 deletions src/Components/FunctionCall.php
Expand Up @@ -16,10 +16,8 @@

/**
* Parses a function call.
*
* @final
*/
class FunctionCall implements Component
final class FunctionCall implements Component
{
/**
* The name of this function.
Expand Down
4 changes: 1 addition & 3 deletions src/Components/GroupKeyword.php
Expand Up @@ -18,10 +18,8 @@

/**
* `GROUP BY` keyword parser.
*
* @final
*/
class GroupKeyword implements Component
final class GroupKeyword implements Component
{
/** @var mixed */
public $type;
Expand Down
4 changes: 1 addition & 3 deletions src/Components/IndexHint.php
Expand Up @@ -17,10 +17,8 @@

/**
* Parses an Index hint.
*
* @final
*/
class IndexHint implements Component
final class IndexHint implements Component
{
/**
* The type of hint (USE/FORCE/IGNORE)
Expand Down
4 changes: 1 addition & 3 deletions src/Components/IntoKeyword.php
Expand Up @@ -17,10 +17,8 @@

/**
* `INTO` keyword parser.
*
* @final
*/
class IntoKeyword implements Component
final class IntoKeyword implements Component
{
/**
* FIELDS/COLUMNS Options for `SELECT...INTO` statements.
Expand Down
4 changes: 1 addition & 3 deletions src/Components/JoinKeyword.php
Expand Up @@ -17,10 +17,8 @@

/**
* `JOIN` keyword parser.
*
* @final
*/
class JoinKeyword implements Component
final class JoinKeyword implements Component
{
/**
* Types of join.
Expand Down
4 changes: 1 addition & 3 deletions src/Components/Key.php
Expand Up @@ -20,10 +20,8 @@
* Parses the definition of a key.
*
* Used for parsing `CREATE TABLE` statement.
*
* @final
*/
class Key implements Component
final class Key implements Component
{
/**
* All key options.
Expand Down
4 changes: 1 addition & 3 deletions src/Components/Limit.php
Expand Up @@ -14,10 +14,8 @@

/**
* `LIMIT` keyword parser.
*
* @final
*/
class Limit implements Component
final class Limit implements Component
{
/**
* The number of rows skipped.
Expand Down
4 changes: 1 addition & 3 deletions src/Components/LockExpression.php
Expand Up @@ -17,10 +17,8 @@

/**
* Parses a reference to a LOCK expression.
*
* @final
*/
class LockExpression implements Component
final class LockExpression implements Component
{
/**
* The table to be locked.
Expand Down
4 changes: 1 addition & 3 deletions src/Components/OptionsArray.php
Expand Up @@ -24,10 +24,8 @@

/**
* Parses a list of options.
*
* @final
*/
class OptionsArray implements Component
final class OptionsArray implements Component
{
/**
* ArrayObj of selected options.
Expand Down
4 changes: 1 addition & 3 deletions src/Components/OrderKeyword.php
Expand Up @@ -17,10 +17,8 @@

/**
* `ORDER BY` keyword parser.
*
* @final
*/
class OrderKeyword implements Component
final class OrderKeyword implements Component
{
/**
* The expression that is used for ordering.
Expand Down
4 changes: 1 addition & 3 deletions src/Components/ParameterDefinition.php
Expand Up @@ -19,10 +19,8 @@

/**
* The definition of a parameter of a function or procedure.
*
* @final
*/
class ParameterDefinition implements Component
final class ParameterDefinition implements Component
{
/**
* The name of the new column.
Expand Down
4 changes: 1 addition & 3 deletions src/Components/PartitionDefinition.php
Expand Up @@ -22,10 +22,8 @@
* Parses the create definition of a partition.
*
* Used for parsing `CREATE TABLE` statement.
*
* @final
*/
class PartitionDefinition implements Component
final class PartitionDefinition implements Component
{
/**
* All field options.
Expand Down
4 changes: 1 addition & 3 deletions src/Components/Reference.php
Expand Up @@ -18,10 +18,8 @@

/**
* `REFERENCES` keyword parser.
*
* @final
*/
class Reference implements Component
final class Reference implements Component
{
/**
* All references options.
Expand Down
4 changes: 1 addition & 3 deletions src/Components/RenameOperation.php
Expand Up @@ -17,10 +17,8 @@

/**
* `RENAME TABLE` keyword parser.
*
* @final
*/
class RenameOperation implements Component
final class RenameOperation implements Component
{
/**
* The old table name.
Expand Down
4 changes: 1 addition & 3 deletions src/Components/SetOperation.php
Expand Up @@ -18,10 +18,8 @@

/**
* `SET` keyword parser.
*
* @final
*/
class SetOperation implements Component
final class SetOperation implements Component
{
/**
* The name of the column that is being updated.
Expand Down
4 changes: 1 addition & 3 deletions src/Components/UnionKeyword.php
Expand Up @@ -17,10 +17,8 @@

/**
* `UNION` keyword builder.
*
* @final
*/
class UnionKeyword implements Component
final class UnionKeyword implements Component
{
/**
* Parses the tokens contained in the given list in the context of the given parser.
Expand Down
2 changes: 0 additions & 2 deletions src/Components/WithKeyword.php
Expand Up @@ -15,8 +15,6 @@

/**
* `WITH` keyword builder.
*
* @final
*/
final class WithKeyword implements Component
{
Expand Down

0 comments on commit e9c5a45

Please sign in to comment.