Skip to content

Commit 3aa2450

Browse files
committed
Deprecate extending schema classes
1 parent f292a73 commit 3aa2450

File tree

5 files changed

+13
-0
lines changed

5 files changed

+13
-0
lines changed

UPGRADE.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@ awareness about deprecated code.
88

99
# Upgrade to 4.4
1010

11+
## Deprecated extension of schema classes
12+
13+
Extending the following classes has been deprecated. Use them directly.
14+
15+
- `Schema`
16+
- `Sequence`
17+
- `Table`
18+
- `View`
19+
1120
## Deprecated features of `Table::getIndexes()`, `Table::getUniqueConstraints()` and `Table::getForeignKeys()`
1221

1322
Using the keys of the arrays returned by `Table::getIndexes()`, `Table::getUniqueConstraints()` and

src/Schema/Schema.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
* execute them. Only the queries for the currently connected database are
5353
* executed.
5454
*
55+
* @final
5556
* @extends AbstractAsset<UnqualifiedName>
5657
*/
5758
class Schema extends AbstractAsset

src/Schema/Sequence.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
/**
1616
* Sequence structure.
1717
*
18+
* @final
1819
* @extends AbstractNamedObject<OptionallyQualifiedName>
1920
*/
2021
class Sequence extends AbstractNamedObject

src/Schema/Table.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
/**
3939
* Object Representation of a table.
4040
*
41+
* @final
4142
* @extends AbstractNamedObject<OptionallyQualifiedName>
4243
*/
4344
class Table extends AbstractNamedObject

src/Schema/View.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
/**
1212
* Representation of a Database View.
1313
*
14+
* @final
1415
* @extends AbstractNamedObject<OptionallyQualifiedName>
1516
*/
1617
class View extends AbstractNamedObject

0 commit comments

Comments
 (0)