File tree Expand file tree Collapse file tree 3 files changed +13
-0
lines changed
tests/Database/Functional/Driver/Common/Schema Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 1313
1414/**
1515 * Represents table schema column abstraction.
16+ *
17+ * @method string getComment() Get column comment.
18+ * An empty string will be returned if the feature is not supported by the driver.
1619 */
1720interface ColumnInterface
1821{
Original file line number Diff line number Diff line change @@ -785,4 +785,13 @@ protected function formatDatetime(
785785 default => $ value ,
786786 };
787787 }
788+
789+ /**
790+ * Get column comment.
791+ * An empty string will be returned if the feature is not supported by the driver.
792+ */
793+ public function getComment (): string
794+ {
795+ return '' ;
796+ }
788797}
Original file line number Diff line number Diff line change 55namespace Cycle \Database \Tests \Functional \Driver \Common \Schema ;
66
77// phpcs:ignore
8+ use Cycle \Database \ColumnInterface ;
89use Cycle \Database \Tests \Functional \Driver \Common \BaseTest ;
910use Cycle \Database \Tests \Utils \DontGenerateAttribute ;
1011
You can’t perform that action at this time.
0 commit comments